Skip to main content



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

The name of an XML object should not contain any leading or trailing white-space characters.

Maximum SeverityError
MessageLeading or trailing white-space character found in XML name.
Rule SystemSyntax
Broad CategoryOpenAPI XML
Products ImpactedDeveloper Experience Portal
Tagsopenapi3 openapi syntax linting apimatic xml name whitespace character

Suggested Fixes

  • Remove all leading or trailing white-space characters such as spaces, tabs, or line breaks from XML name.
  • 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

For More Information