mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
df59b10fb6
This PR fixes additional schemas that hadn't been described properly
20 lines
578 B
TypeScript
20 lines
578 B
TypeScript
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
export const maintenanceSchema = {
|
|
$id: '#/components/schemas/maintenanceSchema',
|
|
type: 'object',
|
|
additionalProperties: false,
|
|
description: "The current state of Unleash's maintenance mode feature.",
|
|
required: ['enabled'],
|
|
properties: {
|
|
enabled: {
|
|
description: 'Whether maintenance mode is enabled or not.',
|
|
type: 'boolean',
|
|
example: true,
|
|
},
|
|
},
|
|
components: {},
|
|
} as const;
|
|
|
|
export type MaintenanceSchema = FromSchema<typeof maintenanceSchema>;
|