Skip to main content

callback-only-post-method-allowed

Overview

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

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

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

Suggested Fixes

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

For More Information