Response that should contain a body has no schema defined

Description

You have not defined any schemas for responses.

Empty schemas for responses are acceptable for responses that do not have any content:

  • The operation in question is HEAD (no content allowed for HEAD responses).
  • The returned HTTP status code is 204 or 304 (no content allowed for these codes).

Otherwise, all responses should contain a body that has a defined schema.

Remediation

Define schemas for all responses that have a body.


Get API Security news directly in your Inbox.

By clicking Subscribe you agree to our Data Policy