1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-17 13:46:47 +02:00
unleash.unleash/src/lib/openapi/spec/dora-features-schema.ts
2024-05-23 11:32:11 +03:00

25 lines
755 B
TypeScript

import type { FromSchema } from 'json-schema-to-ts';
export const doraFeaturesSchema = {
$id: '#/components/schemas/doraFeaturesSchema',
type: 'object',
additionalProperties: false,
required: ['name', 'timeToProduction'],
description:
'The representation of a dora time to production feature metric',
properties: {
name: {
type: 'string',
description: 'The name of a feature flag',
},
timeToProduction: {
type: 'number',
description:
'The average number of days it takes a feature flag to get into production',
},
},
components: {},
} as const;
export type DoraFeaturesSchema = FromSchema<typeof doraFeaturesSchema>;