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.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | The response content key is empty or missing. |
| Code | OPENAPI3APIMATIC_L465 |
| Type | Linting |
| Rule System | Semantic |
| Broad Category | OpenAPI Responses |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | openapi3 openapi apimatic semantic linting response content key missing empty |
Suggested Fixes
- Make sure that the response content contains non-empty media type key.