required-library-path
Overview
This rule belongs to the raml-validation ruleset and states that:
When root level uses property declares a list of libraries as key-value pairs, the key is treated as the library name of namespace and the value must be a path to a RAML library file, usually an external RAML library fragment document. This path must be valid and a non-empty string.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Library path is not provided or is empty. |
| Code | RAML_V800 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Libraries |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | raml semantic validation path library |
Suggested Fixes
- Ensure that all key-value pairs in the root level
usesproperty have non-empty non-null values that represent paths to external library fragment files. - Remove all key-value pairs from the
usesproperty that have empty or null values.