Skip to main content

callback-extension-group-must-exist-when-referenced

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

When a callback operation references a callback group name, that group must be defined in the x-callback-groups extension at the root level. Referencing a non-existent group will result in an invalid configuration.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe referenced callback group does not exist in the callback groups extension.
CodeOPENAPI3APIMATIC_L521
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Callbacks
Products ImpactedCode Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting callback group extension reference

Suggested Fixes

  • Define the referenced callback group in the x-callback-groups extension at the root level.
  • Verify that the callback group name is correctly spelled and matches the definition.

For More Information