Skip to main content

webhook-only-post-method-allowed

Overview

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

Webhooks are server-initiated notifications sent to a client-specified URL. Only the POST HTTP method is allowed for webhook operations. Using any other method is not supported.

PropertyValue
EnabledYes
Maximum SeverityError
MessageWebhook operations must only use the POST HTTP method.
CodeOPENAPI3APIMATIC_L1030
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Webhooks
Products ImpactedCode Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting webhook method post operation

Suggested Fixes

  • Ensure that all webhook operations use the POST HTTP method.
  • Remove or change any webhook operations that use non-POST HTTP methods.

For More Information