Skip to main content

valid-link-request-body-expression

Overview

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

Link request body value is a string used for determining the request body value that needs to be sent as part of the callback request. This value is capable of supporting runtime expressions which are evaluated in the context of a runtime HTTP request/response. The value must use valid runtime expression syntax. Expressions can be embedded into string values by surrounding the expression with {} curly braces.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageInvalid link request body value found.
CodeOPENAPI3SYNTAX_V102
TypeValidation
Rule SystemSyntax
Broad CategoryLinks
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi syntax validation runtime expression expression request body link

Suggested Fixes

  • Ensure that if you are using runtime expressions in your request body value string, the expressions follow valid syntax rules.
  • Ensure that all expressions start and end with a curly brace.

For More Information