2022-06-03 13:16:59 +02:00
|
|
|
import { variantSchema } from './variant-schema';
|
2022-06-08 08:01:14 +02:00
|
|
|
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
import { overrideSchema } from './override-schema';
|
2022-06-03 13:16:59 +02:00
|
|
|
|
2022-06-08 08:01:14 +02:00
|
|
|
export const featureVariantsSchema = {
|
|
|
|
$id: '#/components/schemas/featureVariantsSchema',
|
2022-06-03 13:16:59 +02:00
|
|
|
type: 'object',
|
|
|
|
additionalProperties: false,
|
|
|
|
required: ['version', 'variants'],
|
|
|
|
properties: {
|
|
|
|
version: {
|
|
|
|
type: 'integer',
|
|
|
|
},
|
|
|
|
variants: {
|
|
|
|
type: 'array',
|
|
|
|
items: {
|
|
|
|
$ref: '#/components/schemas/variantSchema',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-06-08 08:01:14 +02:00
|
|
|
components: {
|
|
|
|
schemas: {
|
|
|
|
variantSchema,
|
|
|
|
overrideSchema,
|
|
|
|
},
|
2022-06-03 13:16:59 +02:00
|
|
|
},
|
2022-06-08 08:01:14 +02:00
|
|
|
} as const;
|
2022-06-03 13:16:59 +02:00
|
|
|
|
2022-06-08 08:01:14 +02:00
|
|
|
export type FeatureVariantsSchema = FromSchema<typeof featureVariantsSchema>;
|