UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.

45 lines 1.59 kB
import { constraintSchema } from './constraint-schema.js'; export const updateFeatureSchema = { $id: '#/components/schemas/updateFeatureSchema', type: 'object', description: 'Data used for updating a feature flag', properties: { description: { type: 'string', example: 'Controls disabling of the comments section in case of an incident', description: 'Detailed description of the feature', }, type: { enum: [ 'experiment', 'kill-switch', 'release', 'operational', 'permission', ], example: 'kill-switch', description: 'Type of the flag e.g. experiment, kill-switch, release, operational, permission', }, stale: { type: 'boolean', example: true, description: '`true` if the feature is archived', }, archived: { type: 'boolean', example: true, description: 'If `true` the feature flag will be moved to the [archive](https://docs.getunleash.io/concepts/feature-flags#archive-a-feature-flag) with a property `archivedAt` set to current time', }, impressionData: { type: 'boolean', example: false, description: '`true` if the impression data collection is enabled for the feature', }, }, components: { schemas: { constraintSchema, }, }, }; //# sourceMappingURL=update-feature-schema.js.map