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/health-check-schema.ts
Nuno Góis 123991d28f
refactor: add OpenAPI schema to health-check controller (#1732)
* refactor: add OpenAPI schema to health-check controller

* refactor: address PR comments

* add type to health-check-schema

* fix: update snap
2022-06-20 11:22:41 +01:00

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