unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
30 lines • 939 B
JavaScript
import { variantSchema } from './variant-schema.js';
import { overrideSchema } from './override-schema.js';
export const featureVariantsSchema = {
$id: '#/components/schemas/featureVariantsSchema',
type: 'object',
additionalProperties: false,
required: ['version', 'variants'],
description: 'A versioned collection of feature flag variants.',
properties: {
version: {
type: 'integer',
example: 1,
description: 'The version of the feature variants schema.',
},
variants: {
type: 'array',
items: {
$ref: '#/components/schemas/variantSchema',
},
description: 'All variants defined for a specific feature flag.',
},
},
components: {
schemas: {
variantSchema,
overrideSchema,
},
},
};
//# sourceMappingURL=feature-variants-schema.js.map