1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/src/lib/openapi/spec/toggle-maintenance-schema.ts
Thomas Heartman df59b10fb6
OpenAPI: more schema cleanup (#4353)
This PR fixes additional schemas that hadn't been described properly
2023-07-28 06:59:05 +00:00

23 lines
656 B
TypeScript

import { FromSchema } from 'json-schema-to-ts';
export const toggleMaintenanceSchema = {
$id: '#/components/schemas/toggleMaintenanceSchema',
type: 'object',
description:
'Data used when to activate or deactivate maintenance mode for Unleash.',
required: ['enabled'],
properties: {
enabled: {
description:
'`true` if you want to activate maintenance mode, `false` if you want to deactivate it.',
type: 'boolean',
example: true,
},
},
components: {},
} as const;
export type ToggleMaintenanceSchema = FromSchema<
typeof toggleMaintenanceSchema
>;