Skip to main content

required-base-uri

Overview

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

The root object of RAML document must specify the URL for the target API host using the baseUri property. This will serve as the base URL for all resources in the document. If base URI information is not provided, a dummy value will be assigned automatically during import/transformations in APIMatic.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired property baseUri in root object is missing.
CodeRAML_V101
TypeValidation
Rule SystemSemantic
Broad CategoryAPI Metadata
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsraml semantic validation base uri uri basic metadata

Suggested Fixes

  • Add missing baseUri property in the root object.
  • Make sure that the baseUri property value is not null or empty.

For More Information