mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
28 lines
723 B
TypeScript
28 lines
723 B
TypeScript
|
import { FromSchema } from 'json-schema-to-ts';
|
||
|
import { healthOverviewSchema } from './health-overview-schema';
|
||
|
|
||
|
export const healthReportSchema = {
|
||
|
...healthOverviewSchema,
|
||
|
$id: '#/components/schemas/healthReportSchema',
|
||
|
required: [
|
||
|
...healthOverviewSchema.required,
|
||
|
'potentiallyStaleCount',
|
||
|
'activeCount',
|
||
|
'staleCount',
|
||
|
],
|
||
|
properties: {
|
||
|
...healthOverviewSchema.properties,
|
||
|
potentiallyStaleCount: {
|
||
|
type: 'number',
|
||
|
},
|
||
|
activeCount: {
|
||
|
type: 'number',
|
||
|
},
|
||
|
staleCount: {
|
||
|
type: 'number',
|
||
|
},
|
||
|
},
|
||
|
} as const;
|
||
|
|
||
|
export type HealthReportSchema = FromSchema<typeof healthReportSchema>;
|