Skip to main content

required-gavel-expected-response

Overview

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired property expectedResponse is missing from the root Gavel object.
CodeAPIMATICGAVEL_V300
TypeValidation
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