Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageOperation methodName is invalid.
CodeOPENAPI3CODEGENSYNTAX_L240
TypeLinting
Rule SystemSyntax
Broad CategoryOpenAPI Operation Settings
Products ImpactedCode Generation, Developer Experience Portal
Tagscode 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.

For More Information