api2swagger icon indicating copy to clipboard operation
api2swagger copied to clipboard

Support media types which use the +json suffix

Open ctuckz opened this issue 7 years ago • 0 comments

Added support for json-like media types that use the +json suffix, such as application/problem+json or application/hal+json.

  • Schemas are now generated for request and response bodies when the content type includes "+json"
  • A consumes section containing the content-type of the request body is added to the Swagger output
  • Fixed potential issues due to casing of keys in headerKeyValues

I originally tried to handle the case where no content-type header was included along with a request body, but the change was too out of scope. #8 was created to address it.

ctuckz avatar Sep 17 '17 00:09 ctuckz