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/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

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>;