Skip to main content

optional-query-parameters-test-case

Overview

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

Test case must not contain undeclared query parameters if endpoint does not allow optional query parameters.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageOptional query parameters are found in the input parameters of the test case even though the endpoint does not allow them.
CodeAPIMATICCODEGEN_V165
TypeValidation
Rule SystemSemantic
Broad CategoryTest Cases
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic code generation codegen sdks portal docs validation apimatic parameter test case endpoint setting endpoint

Suggested Fixes

  • Remove optional query parameters from the test case input parameters.
  • Enable optional query parameters from the endpoint settings.
  • Disable the test case by turning off the Enabled flag.

For More Information