You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an allOf appears (apparently illegally) as the first child of a parameters block on a path operation, rather than failing with a useful error message, it exits with:
[Error] There was a problem with a validator.
thing.parameters.map is not a function
A yaml file that (minimally?) reproduces the issue is here:
@tbenda-SEL Also agreed, the validator should be able to continue processing this.
FYI, this is illegal because allOf is a property of JSON Schema and is only allowed in an OpenAPI definition when describing a schema. The parameters object in an operation must be an array of parameter objects or $refs. You may have known that, just wanted to be complete 🙂
Using
lint-openapi
version0.13.3
When an
allOf
appears (apparently illegally) as the first child of aparameters
block on a path operation, rather than failing with a useful error message, it exits with:A yaml file that (minimally?) reproduces the issue is here:
herp.yaml
It would be preferable that it would fail with a message reflecting that the usage was unexpected or illegal.
The text was updated successfully, but these errors were encountered: