Skip to main content

single-entry-parameter-content-map

Overview

This rule belongs to the openapi-v3-standards-validation ruleset and states that:

The content property of the Parameter Object is a map that contains representations of the parameter such that the key represents the media type while the value describes the parameter schema. This content map must contain only one entry.

PropertyValue
EnabledYes
Maximum SeverityError
MessageParameter content map contains more than one entries.
CodeOPENAPI3STANDARDS_V102
TypeValidation
Rule SystemSemantic
Broad CategoryParameters
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation map content schema parameter

Suggested Fixes

  • Keep only one entry in the parameter content map and remove all others.

For More Information