1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00
unleash.unleash/src/lib/openapi/spec/maintenance-schema.ts
2023-04-10 09:55:29 +02:00

18 lines
429 B
TypeScript

import { FromSchema } from 'json-schema-to-ts';
export const maintenanceSchema = {
$id: '#/components/schemas/maintenanceSchema',
type: 'object',
additionalProperties: false,
required: ['enabled'],
properties: {
enabled: {
type: 'boolean',
example: true,
},
},
components: {},
} as const;
export type MaintenanceSchema = FromSchema<typeof maintenanceSchema>;