Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired location information in <import> element is missing.
CodeWSDL_V001
TypeValidation
Rule SystemSemantic
Broad CategoryImports
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagswsdl 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.

For More Information