mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
18 lines
434 B
TypeScript
18 lines
434 B
TypeScript
|
import { FromSchema } from 'json-schema-to-ts';
|
||
|
|
||
|
export const healthCheckSchema = {
|
||
|
$id: '#/components/schemas/healthCheckSchema',
|
||
|
type: 'object',
|
||
|
additionalProperties: false,
|
||
|
required: ['health'],
|
||
|
properties: {
|
||
|
health: {
|
||
|
type: 'string',
|
||
|
enum: ['GOOD', 'BAD'],
|
||
|
},
|
||
|
},
|
||
|
components: {},
|
||
|
} as const;
|
||
|
|
||
|
export type HealthCheckSchema = FromSchema<typeof healthCheckSchema>;
|