Skip to content

Commit

Permalink
feat: dependent features (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew authored Sep 21, 2023
1 parent 65bae34 commit b7b4bca
Show file tree
Hide file tree
Showing 4 changed files with 944 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unleash/client-specification",
"version": "4.4.0",
"version": "4.5.0",
"description": "A collection of test specifications to guide client implementations in various languages",
"scripts": {
"test": "node index",
Expand Down
7 changes: 7 additions & 0 deletions schema/features-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ const schema = Joi.object().keys({
name: Joi.string().required(),
description: Joi.string().optional(),
enabled: Joi.boolean().required(),
dependencies: Joi.array().optional().items(
Joi.object().keys({
feature: Joi.string().required(),
enabled: Joi.bool().optional(),
variants: Joi.array().items(Joi.string()).optional()
})
),
strategies: Joi.array().items(
Joi.object().keys({
name: Joi.string().required(),
Expand Down
Loading

0 comments on commit b7b4bca

Please sign in to comment.