unleash-server
Version:
Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.
81 lines • 2.51 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.featureEnvironmentSchema = void 0;
const constraint_schema_1 = require("./constraint-schema");
const parameters_schema_1 = require("./parameters-schema");
exports.featureEnvironmentSchema = {
$id: '#/components/schemas/featureEnvironmentSchema',
type: 'object',
additionalProperties: false,
required: ['name', 'enabled'],
properties: {
name: {
type: 'string',
},
environment: {
type: 'string',
},
type: {
type: 'string',
},
enabled: {
type: 'boolean',
},
strategies: {
type: 'array',
items: {
type: 'object',
additionalProperties: false,
required: [
'id',
'featureName',
'projectId',
'environment',
'strategyName',
'constraints',
'parameters',
],
properties: {
id: {
type: 'string',
},
featureName: {
type: 'string',
},
projectId: {
type: 'string',
},
environment: {
type: 'string',
},
strategyName: {
type: 'string',
},
sortOrder: {
type: 'number',
},
createdAt: {
type: 'string',
format: 'date-time',
},
constraints: {
type: 'array',
items: {
$ref: '#/components/schemas/constraintSchema',
},
},
parameters: {
$ref: '#/components/schemas/parametersSchema',
},
},
},
},
},
components: {
schemas: {
constraintSchema: constraint_schema_1.constraintSchema,
parametersSchema: parameters_schema_1.parametersSchema,
},
},
};
//# sourceMappingURL=feature-environment-schema.js.map