Skip to main content

valid-xml-name

Overview

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

Name assigned to an XML entity must follow W3C Extensible Markup Language recommendations.

PropertyValue
EnabledYes
Maximum SeverityError
MessageInvalid XML name found.
CodeOPENAPI3APIMATICSYNTAX_L841
TypeLinting
Rule SystemSyntax
Broad CategoryOpenAPI XML
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi syntax linting apimatic xml name

Suggested Fixes

  • Ensure that XML name is valid.
  • Element names are case-sensitive
  • Element names must start with a letter or underscore
  • Element names cannot start with the letters xml (or XML, or Xml, etc)
  • Element names can contain letters, digits, hyphens, underscores, and periods
  • Element names cannot contain spaces

For More Information