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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Name assigned to the link is invalid. |
Code | OPENAPI3SYNTAX_V061 |
Type | Validation |
Rule System | Syntax |
Broad Category | Responses |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | openapi3 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
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#response-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#response-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#openapi-specification
- https://docs.apimatic.io/rulesets/overview/