Skip to main content

valid-response-link-key

Overview

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

The key of response links map is a name for the link which must contain only alphanumeric, dash (-), underscore (_) and period (.) characters. Spaces are not allowed.

PropertyValue
EnabledYes
Maximum SeverityError
MessageName assigned to the link is invalid.
CodeOPENAPI3SYNTAX_V061
TypeValidation
Rule SystemSyntax
Broad CategoryResponses
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi syntax validation name link response

Suggested Fixes

  • Ensure that the link name follows the regex pattern ^[a-zA-Z0-9.-_]+$
  • Remove any invalid characters from the link name.
  • Remove any spaces from the name.

For More Information