Skip to main content

discriminator-property-pointer-empty-path

Overview

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

The JSON pointer path part of the property pointer can't be empty and must reference valid field names. Array indices and empty segments aren't allowed.

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

Suggested Fixes

  • Provide a valid field name after the '#' in the property pointer.
  • Use format like 'request.body#/eventType' with a specific field name.
  • Avoid empty paths like 'request.body#' or 'request.body#/'.
  • Remove array indices and ensure all path segments are field names.

For More Information