no-trailing-leading-spaces-in-xml-name
Overview
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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Leading or trailing white-space character found in XML name. |
Code | OPENAPI3APIMATICSYNTAX_L840 |
Type | Linting |
Rule System | Syntax |
Broad Category | OpenAPI XML |
Products Impacted | Developer Experience Portal |
Tags | openapi3 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