Skip to main content

discriminator-property-pointer-invalid-format

Overview

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

The property pointer must follow the format 'location#/path'. It should contain exactly one '#' character separating the location from the JSON pointer path. The Property pointer should point to the root level string property in the request body

PropertyValue
EnabledYes
Maximum SeverityError
MessageDiscriminator property pointer has invalid format.
CodeAPIMATICCODEGEN_V544
TypeValidation
Rule SystemSemantic
Broad CategoryWebhooks
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic code generation codegen sdks portal docs validation apimatic discriminator property pointer format validation json pointer

Suggested Fixes

  • Use the format 'request.body#/fieldName' for property pointers.
  • Ensure there is exactly one '#' character in the property pointer.
  • The part before '#' specifies the location (for example 'request.body').
  • The part after '#' specifies the JSON pointer path (for example '/eventType').

For More Information