2023-01-20 10:30:20 +01:00
|
|
|
import { variantSchema } from './variant-schema';
|
|
|
|
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
import { overrideSchema } from './override-schema';
|
|
|
|
|
|
|
|
export const pushVariantsSchema = {
|
|
|
|
$id: '#/components/schemas/pushVariantsSchema',
|
|
|
|
type: 'object',
|
2023-07-28 08:59:05 +02:00
|
|
|
description: 'Data used when copying variants into a new environment.',
|
2023-01-20 10:30:20 +01:00
|
|
|
properties: {
|
|
|
|
variants: {
|
|
|
|
type: 'array',
|
2023-07-28 08:59:05 +02:00
|
|
|
description: 'The variants to write to the provided environments',
|
2023-01-20 10:30:20 +01:00
|
|
|
items: {
|
|
|
|
$ref: '#/components/schemas/variantSchema',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
environments: {
|
|
|
|
type: 'array',
|
2023-07-28 08:59:05 +02:00
|
|
|
description: 'The enviromnents to write the provided variants to',
|
2023-01-20 10:30:20 +01:00
|
|
|
items: {
|
|
|
|
type: 'string',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
schemas: {
|
|
|
|
variantSchema,
|
|
|
|
overrideSchema,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export type PushVariantsSchema = FromSchema<typeof pushVariantsSchema>;
|