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
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Discriminator property pointer has invalid format. |
Code | APIMATICCODEGEN_V544 |
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 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').