mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-31 00:16:47 +01:00
53354224fc
Upgrades biome to 1.6.1, and updates husky pre-commit hook. Most changes here are making type imports explicit.
36 lines
1.1 KiB
TypeScript
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>;
|