UNPKG

unleash-server

Version:

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

31 lines 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createDependentFeatureSchema = void 0; exports.createDependentFeatureSchema = { $id: '#/components/schemas/createDependentFeatureSchema', type: 'object', description: 'Feature dependency on a parent feature in write model', required: ['feature'], properties: { feature: { type: 'string', description: 'The name of the feature we depend on.', example: 'parent_feature', }, enabled: { type: 'boolean', description: 'Whether the parent feature should be enabled. When `false` variants are ignored. `true` by default.', example: false, }, variants: { type: 'array', description: 'The list of variants the parent feature should resolve to. Leave empty when you only want to check the `enabled` status.', items: { type: 'string', }, example: ['variantA', 'variantB'], }, }, components: {}, }; //# sourceMappingURL=create-dependent-feature-schema.js.map