Commit 92dab78
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- packages/rulesets/src/oas/functions
- __tests__
3 files changed
+475
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments