Skip to main content

non-empty-response-content-media-type

Overview

This rule belongs to the apimatic-post-processing-validation ruleset and states that:

Response content media type must be non-null and non-empty.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageInvalid media type entry has been removed from the responses.
CodeAPIMATICPOSTPROCESS_V302
TypeValidation
Rule SystemSemantic
Broad CategoryEndpoint Responses
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagsapimatic postprocessing validation response content response endpoint

Suggested Fixes

  • Make sure that the response media type is not null or empty.