Closed plk closed 3 years ago
I'm not sure to be honest. Can you try to look up to see what the specification says?
According to the spec I think its fine to assume that the requestBody is optional unless required is set to true; https://swagger.io/specification/#request-body-object
So it fair to assume that if no requestBody is given in the request, it just not be validated
This should now be resolved by @potatogim 👍
I am not sure about this but this looks like it might be a bug. In the example below, there is an optional body but if no Content-Type header is passed, it gives an "Invalid Content-Type" error in validation. Should the Content-Type header have to exist if there is no content?