UNPKG

unleash-server

Version:

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

61 lines 1.91 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.clientMetricsSchema = void 0; const date_schema_1 = require("./date-schema"); exports.clientMetricsSchema = { $id: '#/components/schemas/clientMetricsSchema', type: 'object', required: ['appName', 'bucket'], properties: { appName: { type: 'string', }, instanceId: { type: 'string', }, environment: { type: 'string', }, bucket: { type: 'object', required: ['start', 'stop', 'toggles'], properties: { start: { $ref: '#/components/schemas/dateSchema', }, stop: { $ref: '#/components/schemas/dateSchema', }, toggles: { type: 'object', additionalProperties: { type: 'object', properties: { yes: { type: 'integer', minimum: 0, }, no: { type: 'integer', minimum: 0, }, variants: { type: 'object', additionalProperties: { type: 'integer', minimum: 0, }, }, }, }, }, }, }, }, components: { schemas: { dateSchema: date_schema_1.dateSchema, }, }, }; //# sourceMappingURL=client-metrics-schema.js.map