mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
22 lines
521 B
TypeScript
22 lines
521 B
TypeScript
|
import { createSchemaObject, CreateSchemaType } from '../types';
|
||
|
|
||
|
export const schema = {
|
||
|
type: 'object',
|
||
|
required: ['version', 'features'],
|
||
|
properties: {
|
||
|
version: {
|
||
|
type: 'integer',
|
||
|
},
|
||
|
features: {
|
||
|
type: 'array',
|
||
|
items: {
|
||
|
$ref: '#/components/schemas/featureSchema',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
} as const;
|
||
|
|
||
|
export type FeaturesSchema = CreateSchemaType<typeof schema>;
|
||
|
|
||
|
export const featuresSchema = createSchemaObject(schema);
|