mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
df59b10fb6
This PR fixes additional schemas that hadn't been described properly
23 lines
656 B
TypeScript
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
|
|
>;
|