required-parameter-name
Overview
This rule belongs to the openapi-v3-standards-validation
ruleset and states that:
The Parameter Object must specify a name for the parameter using the name
property. The name is API/service defined and must not be null or empty.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Required property name in Parameter Object is missing. |
Code | OPENAPI3STANDARDS_V075 |
Type | Validation |
Rule System | Semantic |
Broad Category | Parameters |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | openapi3 openapi standards semantic validation name parameter |
Suggested Fixes
- Add missing
name
property in the Parameter object. - Make sure that the
name
property is not null or empty. - The name of the parameter must match exactly with the name of the parameter expected by the API. Names may be compared in a case-sensitive manner.
For More Information
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#parameter-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#openapi-specification
- https://docs.apimatic.io/rulesets/overview/