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/batch-stale-schema.ts
2023-03-15 08:37:06 +02:00

24 lines
525 B
TypeScript

import { FromSchema } from 'json-schema-to-ts';
export const batchStaleSchema = {
$id: '#/components/schemas/batchStaleSchema',
type: 'object',
required: ['features', 'stale'],
properties: {
features: {
type: 'array',
items: {
type: 'string',
},
},
stale: {
type: 'boolean',
},
},
components: {
schemas: {},
},
} as const;
export type BatchStaleSchema = FromSchema<typeof batchStaleSchema>;