Skip to main content

raml-1-0-schemas-and-types-are-mutually-exclusive

Overview

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

The properties schemas and types in a RAML root object are mutually exclusive. This means that in a root object instance, only one of these properties must be present at a time but not both. It is recommended to use the types property because a future RAML version might remove the schemas alias with that property.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRAML root object contains both schemas and types properties.
CodeRAML_V201
TypeValidation
Rule SystemSemantic
Broad CategoryTypes
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsraml semantic validation schemas types

Suggested Fixes

  • Remove the schemas property from the root object.

For More Information