1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/openapi/spec/applications-schema.ts
Christopher Kolstad 1b248a03e9
docs: Metrics tag openapi docs (#3572)
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>
2023-04-26 12:10:57 +02:00

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>;