unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
30 lines (29 loc) • 1.27 kB
JavaScript
export const createFeatureNamingPatternSchema = {
$id: '#/components/schemas/createFeatureNamingPatternSchema',
type: 'object',
description: 'Create a feature naming pattern',
required: ['pattern'],
properties: {
pattern: {
type: 'string',
nullable: true,
description: 'A JavaScript regular expression pattern, without the start and end delimiters. Optional flags are not allowed.',
example: '^[A-Za-z]+\\.[A-Za-z]+\\.[A-Za-z0-9-]+$',
},
example: {
type: 'string',
nullable: true,
description: 'An example of a feature name that matches the pattern. Must itself match the pattern supplied.',
example: 'dx.feature.1-135',
},
description: {
type: 'string',
nullable: true,
description: 'A description of the pattern in a human-readable format. Will be shown to users when they create a new feature flag.',
example: `<project>.<featureName>.<ticket>
The flag name should contain the project name, the feature name, and the ticket number, each separated by a dot.`,
},
},
components: {},
};
//# sourceMappingURL=create-feature-naming-pattern-schema.js.map