mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-09 00:18:26 +01:00
21 lines
548 B
TypeScript
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>;
|