Skip to main content



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

When defining a test case, you must define the response you expect when the specified request will be executed. This is done using the root level expectedResponse property which must not be missing or set to null.

Maximum SeverityError
MessageRequired property expectedResponse is missing from the root Gavel object.
Rule SystemSemantic
Broad CategoryGavel Expected Response
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsgavel apimatic semantic validation response

Suggested Fixes

  • Ensure that the expectedResponse property exists in the root object.
  • Ensure that the expectedResponse property is not set as null.
  • Ensure that the expectedResponse property name does not have any typos.

For More Information