Skip to main content

webhook-discriminator-mapping-value-empty

Overview

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

Each entry in the discriminator mapping must reference a valid webhook ID. Mapping values that are empty or missing will prevent proper event discrimination.

PropertyValue
EnabledYes
Maximum SeverityError
MessageA webhook discriminator mapping value must not be empty.
CodeOPENAPI3APIMATIC_L1053
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Webhooks
Products ImpactedCode Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting webhook discriminator mapping value

Suggested Fixes

  • Ensure all discriminator mapping values are non-empty.
  • Each mapping value must reference a valid webhook definition ID.

For More Information