mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
b927615ebe
This PR updates a slew of miscellaneous endpoints tagged `Features`
33 lines
1.1 KiB
TypeScript
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>;
|