UNPKG

unleash-server

Version:

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

44 lines 1.61 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateContextFieldSchema = void 0; const legal_value_schema_1 = require("./legal-value-schema"); exports.updateContextFieldSchema = { $id: '#/components/schemas/updateContextFieldSchema', type: 'object', description: 'Data to update an existing context field configuration.', properties: { description: { type: 'string', description: 'A description of the context field', example: "The user's subscription tier", }, stickiness: { type: 'boolean', description: '`true` if this field should be available for use with [custom stickiness](https://docs.getunleash.io/reference/stickiness#custom-stickiness), otherwise `false`', example: false, }, sortOrder: { type: 'integer', description: 'How this context field should be sorted if no other sort order is selected', example: 2, }, legalValues: { type: 'array', description: 'A list of allowed values for this context field', example: [ { value: 'gold' }, { value: 'silver' }, { value: 'crystal' }, ], items: { $ref: '#/components/schemas/legalValueSchema', }, }, }, components: { schemas: { legalValueSchema: legal_value_schema_1.legalValueSchema, }, }, }; //# sourceMappingURL=update-context-field-schema.js.map