Skip to main content

callback-discriminator-mapping-value-references-existing-definition

Overview

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

Each value in the event discriminator mapping must reference an existing callback definition. Mapping values that reference non-existent callbacks will prevent proper event type resolution.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe event discriminator mapping value does not reference an existing callback definition.
CodeOPENAPI3APIMATIC_L512
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Callbacks
Products ImpactedCode Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting callback discriminator mapping definition

Suggested Fixes

  • Ensure each discriminator mapping value references an existing callback definition.
  • Verify that the callback IDs used in the mapping are correctly spelled and defined.

For More Information