1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/openapi/spec/import-toggles-validate-schema.ts
2023-02-16 08:08:51 +01:00

39 lines
1.1 KiB
TypeScript

import { FromSchema } from 'json-schema-to-ts';
import { importTogglesValidateItemSchema } from './import-toggles-validate-item-schema';
export const importTogglesValidateSchema = {
$id: '#/components/schemas/importTogglesValidateSchema',
type: 'object',
required: ['errors', 'warnings'],
additionalProperties: false,
properties: {
errors: {
type: 'array',
items: {
$ref: '#/components/schemas/importTogglesValidateItemSchema',
},
},
warnings: {
type: 'array',
items: {
$ref: '#/components/schemas/importTogglesValidateItemSchema',
},
},
permissions: {
type: 'array',
items: {
$ref: '#/components/schemas/importTogglesValidateItemSchema',
},
},
},
components: {
schemas: {
importTogglesValidateItemSchema,
},
},
} as const;
export type ImportTogglesValidateSchema = FromSchema<
typeof importTogglesValidateSchema
>;