1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00
unleash.unleash/src/lib/openapi/spec/applications-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

36 lines
1.1 KiB
TypeScript

import { applicationSchema } from './application-schema';
import type { FromSchema } from 'json-schema-to-ts';
import { applicationUsageSchema } from './application-usage-schema';
export const applicationsSchema = {
$id: '#/components/schemas/applicationsSchema',
additionalProperties: false,
description:
'An object containing a list of applications that have connected to Unleash via an SDK.',
required: ['total', 'applications'],
type: 'object',
properties: {
total: {
type: 'integer',
example: 50,
description: 'The total number of project applications.',
},
applications: {
description:
'The list of applications that have connected to this Unleash instance.',
type: 'array',
items: {
$ref: '#/components/schemas/applicationSchema',
},
},
},
components: {
schemas: {
applicationSchema,
applicationUsageSchema,
},
},
} as const;
export type ApplicationsSchema = FromSchema<typeof applicationsSchema>;