1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-21 13:47:39 +02:00
unleash.unleash/src/lib/openapi/spec/application-usage-schema.ts
Christopher Kolstad 53354224fc
chore: Bump biome and configure husky (#6589)
Upgrades biome to 1.6.1, and updates husky pre-commit hook.

Most changes here are making type imports explicit.
2024-03-18 13:58:05 +01:00

29 lines
887 B
TypeScript

import type { 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>;