unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
44 lines • 1.53 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.segmentSchema = void 0;
const constraint_schema_1 = require("./constraint-schema");
const client_segment_schema_1 = require("./client-segment-schema");
exports.segmentSchema = {
$id: '#/components/schemas/segmentSchema',
type: 'object',
description: 'Represents a segment of users defined by a set of constraints.',
additionalProperties: false,
required: ['id', 'constraints'],
properties: {
...client_segment_schema_1.clientSegmentSchema.properties,
description: {
type: 'string',
nullable: true,
description: 'The description of the segment.',
example: 'Segment A description',
},
createdAt: {
type: 'string',
format: 'date-time',
description: 'The time the segment was created as a RFC 3339-conformant timestamp.',
example: '2023-07-05T12:56:00.000Z',
},
createdBy: {
type: 'string',
description: 'Which user created this segment',
example: 'johndoe',
},
project: {
type: 'string',
nullable: true,
description: 'The project the segment relates to, if applicable.',
example: 'default',
},
},
components: {
schemas: {
constraintSchema: constraint_schema_1.constraintSchema,
},
},
};
//# sourceMappingURL=segment-schema.js.map