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.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Warning |
| Message | WADL document contains no resources. |
| Code | WADL_V100 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Resources |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | wadl 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.