mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
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>;
|