This rule belongs to the
openapi-v3-standards-linting ruleset and states that:
The XML wrapped definition takes effect only when defined alongside type being array (outside the items). This means that the property
wrapped in the
xml definition must be used only if the schema
type is set as
|Message||XML wrapped definition has no effect on the current non-array schema.|
|Products Impacted||API Transformer, Code Generation, Developer Experience Portal|
- Ensure that if
wrappedis used, the schema in which the XML information is provided has a
- If your schema instance is not expected to have multiple elements i.e. it is not an array schema, consider removing the property
wrappedfrom the XML definition outside the items schema.
- If your XML data can have multiple element occurrences for the current schema definition, consider changing the schema type to array.
For More Information