1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00
unleash.unleash/src/lib/openapi/spec/export-query-schema.ts

26 lines
603 B
TypeScript
Raw Normal View History

2023-01-11 16:00:20 +01:00
import { FromSchema } from 'json-schema-to-ts';
export const exportQuerySchema = {
$id: '#/components/schemas/exportQuerySchema',
type: 'object',
additionalProperties: false,
required: ['features', 'environment'],
properties: {
features: {
type: 'array',
items: {
type: 'string',
minLength: 1,
},
},
environment: {
type: 'string',
},
},
components: {
schemas: {},
},
} as const;
export type ExportQuerySchema = FromSchema<typeof exportQuerySchema>;