mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
23 lines
573 B
TypeScript
23 lines
573 B
TypeScript
|
import { applicationSchema } from './application-schema';
|
||
|
import { FromSchema } from 'json-schema-to-ts';
|
||
|
|
||
|
export const applicationsSchema = {
|
||
|
$id: '#/components/schemas/applicationsSchema',
|
||
|
type: 'object',
|
||
|
properties: {
|
||
|
applications: {
|
||
|
type: 'array',
|
||
|
items: {
|
||
|
$ref: '#/components/schemas/applicationSchema',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
components: {
|
||
|
schemas: {
|
||
|
applicationSchema,
|
||
|
},
|
||
|
},
|
||
|
} as const;
|
||
|
|
||
|
export type ApplicationsSchema = FromSchema<typeof applicationsSchema>;
|