1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/src/lib/openapi/spec/batch-stale-schema.ts
Thomas Heartman b927615ebe
openapi: update misc 'features'-tagged endpoints (#4192)
This PR updates a slew of miscellaneous endpoints tagged `Features`
2023-07-11 14:17:10 +02:00

33 lines
1.1 KiB
TypeScript

import { FromSchema } from 'json-schema-to-ts';
export const batchStaleSchema = {
$id: '#/components/schemas/batchStaleSchema',
type: 'object',
description:
'A list of features to operate on and whether they should be marked as stale or as not stale.',
required: ['features', 'stale'],
properties: {
features: {
type: 'array',
description: 'A list of features to mark as (not) stale',
example: ['my-feature-1', 'my-feature-2', 'my-feature-3'],
items: {
type: 'string',
description: 'A feature name',
example: 'my-feature-5',
},
},
stale: {
type: 'boolean',
example: true,
description:
'Whether the list of features should be marked as stale or not stale. If `true`, the features will be marked as stale. If `false`, the features will be marked as not stale.',
},
},
components: {
schemas: {},
},
} as const;
export type BatchStaleSchema = FromSchema<typeof batchStaleSchema>;