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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Discriminator property pointer has empty or invalid path. |
Code | APIMATICCODEGEN_V546 |
Type | Validation |
Rule System | Semantic |
Broad Category | Webhooks |
Products Impacted | Code Generation, Developer Experience Portal |
Tags | apimatic 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.