1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/src/lib/openapi/spec/application-usage-schema.ts
2023-08-23 12:00:22 +03:00

29 lines
882 B
TypeScript

import { FromSchema } from 'json-schema-to-ts';
export const applicationUsageSchema = {
$id: '#/components/schemas/applicationUsageSchema',
type: 'object',
description: 'Data about an project that have been used by applications.',
additionalProperties: false,
required: ['project', 'environments'],
properties: {
project: {
description: 'Name of the project',
type: 'string',
example: 'main-project',
},
environments: {
description:
'Which environments have been accessed in this project.',
type: 'array',
items: {
type: 'string',
},
example: ['development', 'production'],
},
},
components: {},
} as const;
export type ApplicationUsageSchema = FromSchema<typeof applicationUsageSchema>;