Open m-mohr opened 2 years ago
Hello. Has any progress been made on this? It seems the same issue presents for the keyword type
. Unfortunately, in our case, we can't disable the error on specific resources as we split our schemas & examples out into separate files. I believe overriding of rules is only supported in the top level document.
We're also encountering this issue in spades with our API definition. Any outlook on getting this fixed?
I am running into this issue as well. Using version 6.10.1
As a workaround, I am disabling rule oas3-valid-schema-example
for the schema which has an example containing a property with the name default
.
Describe the bug
oas3-valid-schema-example: I have an OpenAPI file with an example that contains a property
default
. It seems that's the reason validation somehow applies strange rules for it.I'm getting two errors:
I don't fully understand why that is. The default schema specifies it should be "string" and the values in the examples are strings.
To Reproduce
Expected behavior No error message, but instead a successful validation. This worked before in 5.x, but got broken once I migrated from 5 to 6.1.
Environment (remove any that are not applicable):