Skip to main content

unique-callback-expression

Overview

This rule belongs to the openapi-v3-standards-validation ruleset and states that:

Callback Object keys are patterned fields that must have unique values. The keys represent the expression which is evaluated at runtime to identify a URL to use for the callback operation.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate callback expression entry found.
CodeOPENAPI3STANDARDS_V215
TypeValidation
Rule SystemSemantic
Broad CategoryCallbacks
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation callbacks expression

Suggested Fixes

  • Remove duplicate callback expression entries from the Callback Object.
  • Callback expressions are compared in a case-sensitive manner.

For More Information