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/application-schema.ts
Christopher Kolstad 32399291e0
task: add OpenApi spec to metrics route (#1725)
* task: add OpenApi spec to metrics route
2022-06-21 09:12:40 +02:00

41 lines
878 B
TypeScript

import { FromSchema } from 'json-schema-to-ts';
export const applicationSchema = {
$id: '#/components/schemas/applicationSchema',
type: 'object',
additionalProperties: false,
required: ['appName'],
properties: {
appName: {
type: 'string',
},
sdkVersion: {
type: 'string',
},
strategies: {
type: 'array',
items: {
type: 'string',
},
},
description: {
type: 'string',
},
url: {
type: 'string',
},
color: {
type: 'string',
},
icon: {
type: 'string',
},
announced: {
type: 'boolean',
},
},
components: {},
} as const;
export type ApplicationSchema = FromSchema<typeof applicationSchema>;