Skip to content

Commit 92dab78

Browse files
padamstxP0lip
andcommitted
fix(rulesets): avoid false errors from ajv (#2408)
* 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]>
1 parent 5bd7e43 commit 92dab78

File tree

3 files changed

+475
-1
lines changed

3 files changed

+475
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"test.karma": "karma start",
4040
"prepare": "husky install",
4141
"prerelease": "patch-package",
42-
"release": "yarn prerelease && yarn workspaces foreach run release"
42+
"release": "yarn prerelease && yarn workspaces foreach run release",
43+
"jest": "jest"
4344
},
4445
"workspaces": {
4546
"packages": [

0 commit comments

Comments
 (0)