2023-01-11 16:00:20 +01:00
|
|
|
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
|
|
|
|
export const exportQuerySchema = {
|
|
|
|
$id: '#/components/schemas/exportQuerySchema',
|
|
|
|
type: 'object',
|
2023-04-27 10:22:14 +02:00
|
|
|
additionalProperties: true,
|
|
|
|
required: ['environment'],
|
2023-01-11 16:00:20 +01:00
|
|
|
properties: {
|
|
|
|
environment: {
|
|
|
|
type: 'string',
|
|
|
|
},
|
2023-01-17 12:10:20 +01:00
|
|
|
downloadFile: {
|
|
|
|
type: 'boolean',
|
|
|
|
},
|
2023-01-11 16:00:20 +01:00
|
|
|
},
|
2023-04-27 10:22:14 +02:00
|
|
|
oneOf: [
|
|
|
|
{
|
|
|
|
required: ['features'],
|
|
|
|
properties: {
|
|
|
|
features: {
|
|
|
|
type: 'array',
|
|
|
|
items: {
|
|
|
|
type: 'string',
|
|
|
|
minLength: 1,
|
|
|
|
},
|
|
|
|
description: 'Selects features to export by name.',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
required: ['tag'],
|
|
|
|
properties: {
|
|
|
|
tag: {
|
|
|
|
type: 'string',
|
|
|
|
description:
|
|
|
|
'Selects features to export by tag. Takes precedence over the features field.',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2023-01-11 16:00:20 +01:00
|
|
|
components: {
|
|
|
|
schemas: {},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export type ExportQuerySchema = FromSchema<typeof exportQuerySchema>;
|