discriminator-mapping-value-references-existing-definition
Overview
This rule belongs to the apimatic-codegen-validation ruleset and states that:
Every ID referenced in discriminator mapping values MUST correspond to an existing webhook or callback definition in the respective section.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Discriminator mapping value references a non-existent definition. |
| Code | APIMATICCODEGEN_V524 |
| 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 webhook callback discriminator mapping reference validation |
Suggested Fixes
- Verify that all IDs referenced in the mapping exist in the webhooks or callbacks section.
- Check for typos in the ID references.
- Define the missing webhook or callback in the appropriate section.
- Remove the mapping entry that references the non-existent definition.