Skip to main content

valid-rfc-6570-parameter-Name

Overview

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

The OpenAPI specification uses parameter names to identify parameters in various parts of the API, such as path, query, header, and cookie parameters. To ensure interoperability and consistency across API implementations, this rule enforces the requirement that parameter names must follow the URI template syntax specified in RFC6570.

PropertyValue
EnabledNo
Maximum SeverityWarning
MessageInvalid parameter name found.
CodeOPENAPI3APIMATICSYNTAX_L331
TypeLinting
Rule SystemSyntax
Broad CategoryOpenAPI Parameters
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi syntax linting apimatic parameter name RFC6570

Suggested Fixes

  • Ensure that parameter name follows the regex pattern ^[A-Za-z0-9?_()]+$.

For More Information