Skip to content

Commit

Permalink
fix(rulesets): avoid false errors from ajv (#2408)
Browse files Browse the repository at this point in the history
* fix(rulesets): avoid false errors from ajv

This commit modifies the oasExample function so
that example fields are removed from the schema
to be used for validation.  This is needed because
the presence of an "example" field in a schema
confuses ajv in certain scenarios.
References:
- #2081
- #2140
- ajv-validator/ajv#1426

* docs(repo): fix lint warning in README

Signed-off-by: Phil Adams <[email protected]>

* chore(rulesets): use traverse

---------

Signed-off-by: Phil Adams <[email protected]>
Co-authored-by: Jakub Rożek <[email protected]>
  • Loading branch information
padamstx and P0lip committed Apr 25, 2023
1 parent 5bd7e43 commit 92dab78
Show file tree
Hide file tree
Showing 3 changed files with 475 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"test.karma": "karma start",
"prepare": "husky install",
"prerelease": "patch-package",
"release": "yarn prerelease && yarn workspaces foreach run release"
"release": "yarn prerelease && yarn workspaces foreach run release",
"jest": "jest"
},
"workspaces": {
"packages": [
Expand Down
Loading

0 comments on commit 92dab78

Please sign in to comment.