oasOperationTags


oasOperationTags will check each Operation for a non-empty tags definition. If there is no definition for an operation method, or the array is empty then a violation is triggered.

Example ruleset configuration

operation-tags:
  description: "Check operation has used tags properly"
  type: "validation"
  recommended: true
  severity: "warn"
  given: "$"
  then:
    function: "oasOperationTags"

The function is used by the operation-tags Rule


View Function Source