required-import-location
Overview
This rule belongs to the wsdl-validation
ruleset and states that:
When <import> is used for including external documents in a WSDL file, it must specify a location of the external document using the location
attribute. The value of this attribute must be a non-empty, absolute URI that points to a valid accessible document. If the location details are not available, the components from the imported file will not be loaded during import/transformations in APIMatic.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Required location information in <import> element is missing. |
Code | WSDL_V001 |
Type | Validation |
Rule System | Semantic |
Broad Category | Imports |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | wsdl semantic validation location import |
Suggested Fixes
- Ensure that a
location
attribute exists in the <import> element. - Ensure that the
location
value is not empty. - Provide a valid absolute URI of the location of the external document in the
location
attribute.