Forum Discussion
abonstrom
Staff
4 years agoHi mhiggins!
Here's a rule I wrote that does this. Instead of using a regex-based rule, I was able to implement this functionality using the "Path Exists" check box in the custom rule creation.
name: 200 Resp Code must have content tag
openapi version: all
path exists: yes
path: $.paths.[*].responses.[200].content
Hope this helps!