mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
123991d28f
* refactor: add OpenAPI schema to health-check controller * refactor: address PR comments * add type to health-check-schema * fix: update snap
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>;
|