Skip to main content

webhook-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 webhook definition. Mapping values that reference non-existent webhooks will prevent proper event type resolution.

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

Suggested Fixes

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

For More Information