I have this in my
I’m trying to write a rule that shows an error if the operation id is not kebab cased.
Any ideas why this rule isn’t working? I have other rules in here that I left out of brevity and they are working just fine.
# Extends the default spectral rulesets extends: ["spectral:oas2", "spectral:oas3"] rules: # Enforce operation id's are kebab-cased kebab-case-operation-id: description: operationId should be kebab-cased. recommended: true severity: error type: style given: "$.operationId" then: function: casing functionOptions: type: kebab