Skip to main content

callback-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 callback ID. Mapping values that are empty or missing will prevent proper event discrimination.

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

Suggested Fixes

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

For More Information