Skip to main content

required-xml-name-in-schema-property

Overview

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

In OpenAPI specifications, when using XML for schema properties, the XML name is required to be specified. An XML name should be specified for schema properties to ensure that the schema is properly defined and can be used correctly.

PropertyValue
EnabledYes
Maximum SeverityError
MessageXML name is required for schema property.
CodeOPENAPI3APIMATIC_L843
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI XML
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting schema property xml name

Suggested Fixes

  • Check the OpenAPI specification to confirm if any schema property is missing an XML name.
  • If any schema property is missing an XML name, update the specification to include an XML name for the schema property.

For More Information