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

41 lines
878 B
TypeScript
Raw Normal View History

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