UNPKG

unleash-server

Version:

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

42 lines 1.39 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.upsertSegmentSchema = void 0; const constraint_schema_1 = require("./constraint-schema"); exports.upsertSegmentSchema = { $id: '#/components/schemas/upsertSegmentSchema', type: 'object', description: 'Data used to create or update a segment', required: ['name', 'constraints'], properties: { name: { description: 'The name of the segment', example: 'beta-users', type: 'string', }, description: { type: 'string', nullable: true, description: 'A description of what the segment is for', example: 'Users willing to help us test and build new features.', }, project: { type: 'string', nullable: true, description: 'The project the segment belongs to if any.', example: 'red-vista', }, constraints: { type: 'array', description: 'The list of constraints that make up this segment', items: { $ref: '#/components/schemas/constraintSchema', }, }, }, components: { schemas: { constraintSchema: constraint_schema_1.constraintSchema, }, }, }; //# sourceMappingURL=upsert-segment-schema.js.map