Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 595 Bytes

1003.md

File metadata and controls

36 lines (31 loc) · 595 Bytes

1003 - RequestBodyFormatNoLongerSupported

Description: Checks whether any supported consumes is changed from the previous specification.

Cause: This is considered a breaking change.

Example: text/json format for body is no longer supported in the new version.

Old specification

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

New specification

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