mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
32399291e0
* task: add OpenApi spec to metrics route
41 lines
878 B
TypeScript
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>;
|