extension-group-must-exist-when-referenced
Overview
This rule belongs to the apimatic-codegen-validation ruleset and states that:
When webhook or callback operations reference an extension group, the corresponding x-webhooks or x-callbacks extension MUST exist in the API specification.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Operation references non-existent extension group. |
| Code | APIMATICCODEGEN_V528 |
| 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 extension group x-webhooks x-callbacks reference validation missing extension |
Suggested Fixes
- Define the referenced extension group in the API specification.
- Check for typos in the extension group reference name.
- Ensure the extension contains the group being referenced.
- Remove the group reference if the extension isn't needed.