OpenLint Ruleset Specification warn off by default

operation-id-camel-case

operationId is written in camelCase.

Applies to
operationId
Selects
$.paths[*]['get','put','post','delete','options','head','patch','trace'].operationId
Function
casing
Specs
OpenAPI 3.0OpenAPI 3.1OpenAPI 3.2

Use it

This rule isn't built in. Copy it into your ruleset:

aliases:
  Operation:
    - '$.paths[*][''get'',''put'',''post'',''delete'']'
rules:
  operation-id-camel-case:
    description: operationId is written in camelCase.
    recommended: false
    given: >-
      $.paths[*]['get','put','post','delete','options','head','patch','trace'].operationId
    then:
      function: casing
      functionOptions:
        type: camel

About this rule

From the specification’s running example. It is defined with recommended: false, so it is off until a ruleset turns it on with the shorthand operation-id-camel-case: true.

Sources