mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
25 lines
725 B
TypeScript
25 lines
725 B
TypeScript
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
export const bulkToggleFeaturesSchema = {
|
|
$id: '#/components/schemas/bulkToggleFeaturesSchema',
|
|
type: 'object',
|
|
required: ['features'],
|
|
description: 'The feature list used for bulk toggle operations',
|
|
properties: {
|
|
features: {
|
|
type: 'array',
|
|
description: 'The features that we want to bulk toggle',
|
|
items: {
|
|
type: 'string',
|
|
description: 'The feature name we want to toggle',
|
|
},
|
|
example: ['feature-a', 'feature-b'],
|
|
},
|
|
},
|
|
components: {},
|
|
} as const;
|
|
|
|
export type BulkToggleFeaturesSchema = FromSchema<
|
|
typeof bulkToggleFeaturesSchema
|
|
>;
|