[*]
This rule checks if operationId
is camelCase in spectral.
extends: spectral:oas
aliases:
PathItem:
- $.paths[*]
OperationObject:
- "#PathItem[get,put,post,delete,options,head,patch,trace]"
guidelines:
operation-id-camel-case:
description: Operation IDs should be camelCase since some mills (e.g. RTK Question) do not help kebab-cases.
message: "Operation ID "{{worth}}" should be camelCase since some mills (e.g. RTK Question) do not help kebab-cases."
given: "#OperationObject"
severity: error
then:
area: operationId
perform: casing
functionOptions:
sort: camel
Instance of detecting errors:
[*]