Skip to main content

operation-id-uses-pascal-case

Overview

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

OperationId define in the Operation object must be defined in PascalCase format.

PropertyValue
EnabledNo
Maximum SeverityWarning
MessageOperationId is not in PascalCase format.
CodeOPENAPI3CODEGEN_L193
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Operations
Products ImpactedCode Generation, Developer Experience Portal
Tagscode generation sdks openapi3 openapi semantic linting apimatic operationId pascal case

Suggested Fixes

  • Ensure that the id is properly formatted with the first letter of each word capitalized.
  • Make sure that id does not contain any spaces or underscores.

For More Information