OAS: Swagger editor may not pick up the correct media-type value
Closed this issue · 0 comments
ostridm commented
The method OasV2ParameterObjectsParser.parseBodyParameter
may not pick up the correct media-type value.
The method should take into account least three cases:
- root level
consumes
and no operation-levelconsumes
- root level
consumes
overriding with non-empty operation-levelconsumes
- root level
consumes
overriding with empty operation-levelconsumes
; according to spec - "An empty value MAY be used to clear the global definition".