UNPKG

unleash-server

Version:

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

48 lines 1.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.variantSchema = void 0; const override_schema_1 = require("./override-schema"); exports.variantSchema = { $id: '#/components/schemas/variantSchema', type: 'object', additionalProperties: false, required: ['name', 'weight'], properties: { name: { type: 'string', }, weight: { type: 'number', }, weightType: { type: 'string', }, stickiness: { type: 'string', }, payload: { type: 'object', required: ['type', 'value'], properties: { type: { type: 'string', }, value: { type: 'string', }, }, }, overrides: { type: 'array', items: { $ref: '#/components/schemas/overrideSchema', }, }, }, components: { schemas: { overrideSchema: override_schema_1.overrideSchema, }, }, }; //# sourceMappingURL=variant-schema.js.map