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/bulk-toggle-features-schema.ts
2023-05-17 10:21:08 +02:00

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
>;