unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
39 lines • 1.45 kB
JavaScript
import { constraintSchema } from './constraint-schema.js';
import { parametersSchema } from './parameters-schema.js';
import { featureStrategySchema } from './feature-strategy-schema.js';
import { variantSchema } from './variant-schema.js';
import { strategyVariantSchema } from './strategy-variant-schema.js';
import { featureEnvironmentSchema } from './feature-environment-schema.js';
export const featureSearchEnvironmentSchema = {
$id: '#/components/schemas/featureSearchEnvironmentSchema',
type: 'object',
additionalProperties: false,
required: ['name', 'enabled', 'type'],
description: 'A detailed description of the feature environment',
properties: {
...featureEnvironmentSchema.properties,
yes: {
description: 'How many times the toggle evaluated to true in last hour bucket',
type: 'integer',
example: 974,
minimum: 0,
},
no: {
description: 'How many times the toggle evaluated to false in last hour bucket',
type: 'integer',
example: 50,
minimum: 0,
},
},
components: {
schemas: {
constraintSchema,
parametersSchema,
featureStrategySchema,
strategyVariantSchema,
featureEnvironmentSchema,
variantSchema,
},
},
};
//# sourceMappingURL=feature-search-environment-schema.js.map