Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageLibrary path is not provided or is empty.
CodeRAML_V800
TypeValidation
Rule SystemSemantic
Broad CategoryLibraries
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsraml semantic validation path library

Suggested Fixes

  • Ensure that all key-value pairs in the root level uses property have non-empty non-null values that represent paths to external library fragment files.
  • Remove all key-value pairs from the uses property that have empty or null values.

For More Information