UNPKG

unleash-server

Version:

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

48 lines 1.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.tokenUserSchema = void 0; const role_schema_1 = require("./role-schema"); exports.tokenUserSchema = { $id: '#/components/schemas/tokenUserSchema', type: 'object', additionalProperties: false, description: 'A user identified by a token', required: ['id', 'email', 'token', 'createdBy', 'role'], properties: { id: { type: 'integer', description: 'The user id', example: 7, }, name: { description: 'The name of the user', type: 'string', example: 'Test McTest', }, email: { description: 'The email of the user', type: 'string', example: 'test@example.com', }, token: { description: 'A token uniquely identifying a user', type: 'string', example: 'user:xyzrandomstring', }, createdBy: { description: 'A username or email identifying which user created this token', type: 'string', nullable: true, example: 'admin@example.com', }, role: { $ref: '#/components/schemas/roleSchema', }, }, components: { schemas: { roleSchema: role_schema_1.roleSchema, }, }, }; //# sourceMappingURL=token-user-schema.js.map