Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 593 Bytes

1004.md

File metadata and controls

36 lines (31 loc) · 593 Bytes

1004 - ResponseBodyFormatNowSupported

Description: Checks whether any additional supported produces is now supported from the previous specification.

Cause: This is considered a breaking change.

Example: text/json format is now supported in the new version.

Old specification

{
  "swagger": "2.0",
  "info": {
    ...
  "scheme": [
    "https"
  ],
  "produces":[
    "application/json"
  ]

New specification

{
  "swagger": "2.0",
  "info": {
    ...
  "scheme": [
    "https"
  ],
  "produces":[
    "application/json",
    "text/json"
  ]