mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
31 lines
828 B
TypeScript
31 lines
828 B
TypeScript
|
import { FromSchema } from 'json-schema-to-ts';
|
||
|
import { featureEnvironmentMetricsSchema } from './feature-environment-metrics-schema';
|
||
|
|
||
|
export const featureMetricsSchema = {
|
||
|
$id: '#/components/schemas/featureMetricsSchema',
|
||
|
type: 'object',
|
||
|
additionalProperties: false,
|
||
|
required: ['version', 'maturity', 'data'],
|
||
|
properties: {
|
||
|
version: {
|
||
|
type: 'number',
|
||
|
},
|
||
|
maturity: {
|
||
|
type: 'string',
|
||
|
},
|
||
|
data: {
|
||
|
type: 'array',
|
||
|
items: {
|
||
|
$ref: '#/components/schemas/featureEnvironmentMetricsSchema',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
components: {
|
||
|
schemas: {
|
||
|
featureEnvironmentMetricsSchema,
|
||
|
},
|
||
|
},
|
||
|
} as const;
|
||
|
|
||
|
export type FeatureMetricsSchema = FromSchema<typeof featureMetricsSchema>;
|