mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
1b248a03e9
I've copied most of the descriptions from what we did for batch metrics under the Edge tag, however there are a couple of top level descriptions that are "fine" but I'm definitely open to suggestions. --------- Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
26 lines
713 B
TypeScript
26 lines
713 B
TypeScript
import { applicationSchema } from './application-schema';
|
|
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
export const applicationsSchema = {
|
|
$id: '#/components/schemas/applicationsSchema',
|
|
additionalProperties: false,
|
|
type: 'object',
|
|
properties: {
|
|
applications: {
|
|
description:
|
|
'Contains a list of applications that have connected via an SDK',
|
|
type: 'array',
|
|
items: {
|
|
$ref: '#/components/schemas/applicationSchema',
|
|
},
|
|
},
|
|
},
|
|
components: {
|
|
schemas: {
|
|
applicationSchema,
|
|
},
|
|
},
|
|
} as const;
|
|
|
|
export type ApplicationsSchema = FromSchema<typeof applicationsSchema>;
|