Skip to main content

required-base-uri-parameter-default-value

Overview

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

A default value must be provided for the base URI parameter using the default property that can be substituted in the base URI in case no other value is supplied at the time of making the request. If a value is not provided in the RAML document, a dummy value will be assigned automatically as the default value during import/transformations in APIMatic.

PropertyValue
EnabledYes
Maximum SeverityError
MessageNo default value provided for base URI parameter.
CodeRAML_V102
TypeValidation
Rule SystemSemantic
Broad CategoryAPI Metadata
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsraml semantic validation default parameter base uri uri

Suggested Fixes

  • Add missing default property in the base URI parameter definition.
  • Make sure that the default property value is not null or empty.

For More Information