Skip to main content



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

Exception types can only be referenced by error definitions. All other entities can only reference a Structure or Enumeration type model.

Maximum SeverityError
MessageException model is being referenced by a component other than an error definition which is not allowed.
Rule SystemSemantic
Broad CategoryTypes
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic exception error response type custom type model complex model

Suggested Fixes

  • Change the type of model to a structure type if it is not intended to be used as an error model.
  • Create a structure type for this model with a different name and reference that instead.

For More Information