Closed NathanHuisman closed 5 years ago
Schema validation is provided by the official swagger-editor-dist and is not managed by this project.
Without an example schema provided it is difficult to try and recreate what you may be encountering. However, I did find this open issue on the swagger-editor-dist that seems related to what you are seeing. Specifically you may find this comment helpful.
As per the docs:
required - Determines whether this parameter is mandatory. If the parameter location is "path", this property is REQUIRED and its value MUST be true. Otherwise, the property MAY be included and its default value is false.
When I set required
to FALSE, I get the error you described, but if I set it to TRUE, then the error message goes away.
Ultimately, this misleading error message will need to be resolved by the swagger-editor-dist project.
It appears this was the problem, I didn't know the schema validation was provided by swagger-editor-dist. I couldn't find where this error message was from, so I assumed it was an issue of this implementation. My apologies for not understanding this correctly
The official specification describes:
(here)
while I get an error:
So this implementation only supports the query, header, and cookie values, and not the path parameter type I use this a lot, so it would be nice if it would be added.