Skip to main content

webhook-discriminator-property-pointer-references-string-type

Overview

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

The property referenced by the event discriminator pointer must be of type string. Non-string types cannot be used as discriminator values for identifying different event types.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe event discriminator property pointer must reference a string-typed property.
CodeOPENAPI3APIMATIC_L1041
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Webhooks
Products ImpactedCode Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting webhook discriminator property pointer string type

Suggested Fixes

  • Ensure the property referenced by the discriminator pointer is of type string.
  • Change the property type to string if it is currently a different type.

For More Information