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/version-schema.ts

44 lines
1.1 KiB
TypeScript
Raw Normal View History

import { FromSchema } from 'json-schema-to-ts';
export const versionSchema = {
$id: '#/components/schemas/versionSchema',
type: 'object',
additionalProperties: false,
required: ['current', 'latest', 'isLatest', 'instanceId'],
properties: {
current: {
type: 'object',
additionalProperties: false,
properties: {
oss: {
type: 'string',
},
enterprise: {
type: 'string',
},
},
},
latest: {
type: 'object',
additionalProperties: false,
properties: {
oss: {
type: 'string',
},
enterprise: {
type: 'string',
},
},
},
isLatest: {
type: 'boolean',
},
instanceId: {
type: 'string',
},
},
components: {},
} as const;
export type VersionSchema = FromSchema<typeof versionSchema>;