0

How can I check for tags being present? I can check for tags having values. For example,

paths[*]..summary

shows me the value of the summary tags that are present:

[
  "List all pets",
  "Create a pet",
  "Info for a specific pet"
]

But I want to check if the summary tag itself is missing.

Michael
  • 79
  • 7

1 Answers1

0

Thanks to Jakub Rożek:

rules:
  summary-tag-defined:
    given: $.paths[*][get,post,put,delete,patch,trace,options,head]
    then:
      field: summary
      function: defined
Michael
  • 79
  • 7