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
locationattribute exists in the <import> element. - Ensure that the
locationvalue is not empty. - Provide a valid absolute URI of the location of the external document in the
locationattribute.