This rule belongs to the
openapi-v3-standards-validation ruleset and states that:
The Header Object must define the type schema for the header using either the
content property. The former is used more commonly while the latter is recommended for more complex scenarios involving media types. However, at one time, only one of these properties must be present and not both.
|Message||Header Object has neither defined property |
|Products Impacted||API Transformer, Code Generation, Developer Experience Portal|
- Add missing
contentproperty in the Header Object.
- Make sure that whatever property you specify (
content) is a valid object and is not set to null.
- The property
schemais used more commonly while the property
contentis recommended for more complex scenarios involving media types.
For More Information