unleash-server
Version:
Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.
53 lines • 1.32 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.eventSchema = void 0;
const tag_schema_1 = require("./tag-schema");
exports.eventSchema = {
$id: '#/components/schemas/eventSchema',
type: 'object',
additionalProperties: false,
required: ['id', 'createdAt', 'type', 'createdBy'],
properties: {
id: {
type: 'integer',
minimum: 1,
},
createdAt: {
type: 'string',
format: 'date-time',
},
type: {
type: 'string',
},
createdBy: {
type: 'string',
},
environment: {
type: 'string',
nullable: true,
},
project: {
type: 'string',
nullable: true,
},
featureName: {
type: 'string',
nullable: true,
},
data: { type: 'object', nullable: true },
preData: { type: 'object', nullable: true },
tags: {
type: 'array',
items: {
$ref: tag_schema_1.tagSchema.$id,
},
nullable: true,
},
},
components: {
schemas: {
tagSchema: tag_schema_1.tagSchema,
},
},
};
//# sourceMappingURL=event-schema.js.map