import { createSchemaObject, CreateSchemaType } from '../types'; import { featureSchema } from './feature-schema'; const schema = { type: 'object', additionalProperties: false, required: ['version', 'features'], properties: { version: { type: 'integer', }, features: { type: 'array', items: { $ref: '#/components/schemas/featureSchema' }, }, }, 'components/schemas': { featureSchema: { schema: featureSchema }, }, } as const; export type FeaturesSchema = CreateSchemaType; export const featuresSchema = createSchemaObject(schema);