Skip to main content

only-schema-properties-can-be-xml-attributes

Overview

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

Only schema properties can be marked as XML attributes while the root schema can only be marked as XML element.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe root schema cannot be marked as an XML attribute.
CodeOPENAPI3APIMATIC_L847
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI XML
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting schema properties xml attribute

Suggested Fixes

  • Declare root schema as XML element.

For More Information