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/toggle-maintenance-schema.ts
2023-04-10 09:55:29 +02:00

19 lines
426 B
TypeScript

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