valid-operation-method-name
Overview
This rule belongs to the openapi-v3-codegen-syntax-linting ruleset and states that:
Method names must use letters, numbers, spaces, underscores and dashes only. It must start with a letter.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Operation methodName is invalid. |
| Code | OPENAPI3CODEGENSYNTAX_L240 |
| Type | Linting |
| Rule System | Syntax |
| Broad Category | OpenAPI Operation Settings |
| Products Impacted | Code Generation, Developer Experience Portal |
| Tags | code generation sdks openapi3 openapi syntax linting apimatic operation method name codegen setting |
Suggested Fixes
- Make sure that the method name does not contain any forbidden characters.
- Make sure that the method name starts with a letter.
- Use only letters, numbers, spaces, underscores and dashes.