Responses

Response bodies the generated runtimes cannot decode.

Rule Default Summary
Response/UnsupportedContentType warn A configured operation declares a response content type the generator cannot decode.

Response/UnsupportedContentType

A configured operation declares a response content type the generator cannot decode.

Default severity Fix lives in
warn Your API description (document)

When it fires

A configured operation declares a response media type no generated runtime can decode — anything outside JSON, JSON Lines, server-sent events, CSV, plain text, and binary — so the body is handed back as opaque bytes.

Changing or silencing it

Each finding's suppression key is <verb> <path> <status> <contentType>.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Response/UnsupportedContentType": "info"
    },
    "ignored": {
      "Response/UnsupportedContentType": "<suppression key>"
    }
  }
}

See also

What did you think of this content?