valid-xml-namespace
Overview
This rule belongs to the openapi-v3-syntax-validation
ruleset and states that:
The XML namespace value must be a proper URI with an absolute path.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | XML namespace URI is invalid. |
Code | OPENAPI3SYNTAX_V180 |
Type | Validation |
Rule System | Syntax |
Broad Category | XML |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | openapi3 openapi syntax validation xml namespace uri |
Suggested Fixes
- Ensure that the URI does not contain any forbidden characters.
- Ensure that the URI is not a relative path.
For More Information
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#xml-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#xml-object
- https://www.rfc-editor.org/rfc/rfc3986
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#openapi-specification
- https://docs.apimatic.io/rulesets/overview/