mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
29 lines
882 B
TypeScript
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>;
|