Skip to main content

at-least-one-resource

Overview

This rule belongs to the wadl-validation ruleset and states that:

For a better experience with import/transformation, it is recommended to include all crucial information in your WADL document. One such information is the resource definitions, which must be provided in the <resources> child element nested directly under the root <application> element. The <resources> element must contain at least one resource definition using the <resource> child element.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageWADL document contains no resources.
CodeWADL_V100
TypeValidation
Rule SystemSemantic
Broad CategoryResources
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagswadl api semantic validation resource

Suggested Fixes

  • Ensure that a <resources> child element exists in the <application> element.
  • Ensure that the <resources> element contains at least one <resource> child element inside it.

For More Information