Skip to main content

type-declaration-example-and-examples-are-mutually-exclusive

Overview

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

The properties example and examples in a type declaration are mutually exclusive. This means that in a type declaration, only one of these properties must be present at a time but not both.

PropertyValue
EnabledYes
Maximum SeverityError
MessageType declaration contains both example and examples properties.
CodeRAML_V204
TypeValidation
Rule SystemSemantic
Broad CategoryTypes
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsraml semantic validation examples example schema type declaration type

Suggested Fixes

  • Remove either the example or examples property from the type declaration.

For More Information