Skip to main content

webhook-discriminator-property-pointer-empty-path

Overview

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

The property pointer in the event discriminator must contain a non-empty path after the location prefix. An empty path cannot identify a specific field in the request body.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe event discriminator property pointer has an empty path.
CodeOPENAPI3APIMATIC_L1038
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Webhooks
Products ImpactedCode Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting webhook discriminator property pointer path

Suggested Fixes

  • Provide a non-empty path in the property pointer that identifies the discriminator field.
  • The path should point to a specific property in the request body schema.

For More Information