The example in the operation is not consistent with the media type defined in the operation’s ‘produces’ property

Description

The example of the operation in question is not consistent with the MIME type defined in the produces property of the operation.

This applies only to OpenAPI Specification (OAS) v2. For more details, see the OAS.

Remediation

Make sure that all examples of the operations are consistent with the MIME type defined in their produces property.


Get API Security news directly in your Inbox.

By clicking Subscribe you agree to our Data Policy