-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add targeting schema, improve def. schema (#120)
This PR: - adds JSON-schema validation for targeting rules - basic JSONLogic rules validated - custom rules (`sem_ver`, `fractional`, `starts/ends_with`) are fully validated - descriptions are added for all operations and operands - `$evalutators` validated - maintained in separate schema - improves flag-definition schema - descriptions added/improved I've also added a bunch of positive and negative tests. For a preview, add `"$schema": "https://deploy-preview-1115--polite-licorice-3db33c.netlify.app/schema/v0/flagd-definitions.json"` as a sibling to `"flags"` in your flagd config. Closes: #115⚠️ KEEP IN MIND WHEN REVIEWING that that `.yaml` files are the source of truth; the CI checks that the json is consistent with them. ![validation](https://github.com/open-feature/flagd-schemas/assets/25272906/d29fc404-0014-47ed-b5ad-60255fc124b5) --------- Signed-off-by: Todd Baert <[email protected]> Co-authored-by: Michael Beemer <[email protected]> Co-authored-by: Kavindu Dodanduwa <[email protected]>
- Loading branch information
1 parent
2602ce2
commit 6041fc7
Showing
18 changed files
with
1,667 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.