Skip to main content

non-empty-response-content-key

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

Each media type within the content object of a response object must have a non-empty media type key. The media type key represents the content type of the response.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe response content key is empty or missing.
CodeOPENAPI3APIMATIC_L465
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Responses
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting response content key missing empty

Suggested Fixes

  • Make sure that the response content contains non-empty media type key.

For More Information