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/applications-schema.ts
2023-08-23 12:00:22 +03:00

30 lines
941 B
TypeScript

import { applicationSchema } from './application-schema';
import { 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.',
type: 'object',
properties: {
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>;