Skip to main content

non-null-non-empty-error-template-key

Overview

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

The error template key must be a valid error HTTP status code/range or set to 0. Empty or null entries will be automatically removed.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageError template key is empty or null.
CodeAPIMATICPOSTPROCESSCODEGEN_V201
TypeValidation
Rule SystemSemantic
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic postprocessing code generation validation key error template errors exceptions codegen setting endpoint setting

Suggested Fixes

  • Make sure that the error template map key is not empty or null.
  • The key must not contain trailing or leading spaces.
  • The key must be a valid error HTTP status code/range or set to 0.
  • Error status codes belong to the HTTP status ranges 4XX or 5XX.

For More Information