UNPKG

unleash-server

Version:

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

18 lines 515 B
import Joi from 'joi'; import { customJoi } from '../routes/util.js'; import { TAG_MIN_LENGTH, TAG_MAX_LENGTH } from '../tags/index.js'; export const tagSchema = Joi.object() .keys({ value: Joi.string().min(TAG_MIN_LENGTH).max(TAG_MAX_LENGTH), type: customJoi .isUrlFriendly() .min(TAG_MIN_LENGTH) .max(TAG_MAX_LENGTH) .default('simple'), }) .options({ allowUnknown: false, stripUnknown: true, abortEarly: false, }); //# sourceMappingURL=tag-schema.js.map