mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Update OpenAPI for `/api/admin/projects/{projectId}/features/` and
related endpoints
---------
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
		
	
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			455 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			455 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { FromSchema } from 'json-schema-to-ts';
 | |
| import { patchSchema } from './patch-schema';
 | |
| 
 | |
| export const patchesSchema = {
 | |
|     $id: '#/components/schemas/patchesSchema',
 | |
|     type: 'array',
 | |
|     description: 'A list of patches',
 | |
|     items: {
 | |
|         $ref: '#/components/schemas/patchSchema',
 | |
|     },
 | |
|     components: {
 | |
|         schemas: {
 | |
|             patchSchema,
 | |
|         },
 | |
|     },
 | |
| } as const;
 | |
| 
 | |
| export type PatchesSchema = FromSchema<typeof patchesSchema>;
 |