1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-09 00:18:26 +01:00
unleash.unleash/src/lib/openapi/spec/variants-schema.ts
Thomas Heartman df59b10fb6
OpenAPI: more schema cleanup (#4353)
This PR fixes additional schemas that hadn't been described properly
2023-07-28 06:59:05 +00:00

21 lines
548 B
TypeScript

import { variantSchema } from './variant-schema';
import { FromSchema } from 'json-schema-to-ts';
import { overrideSchema } from './override-schema';
export const variantsSchema = {
$id: '#/components/schemas/variantsSchema',
type: 'array',
description: 'A list of variants',
items: {
$ref: '#/components/schemas/variantSchema',
},
components: {
schemas: {
variantSchema,
overrideSchema,
},
},
} as const;
export type VariantsSchema = FromSchema<typeof variantsSchema>;