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

24 lines
525 B
TypeScript
Raw Normal View History

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