Skip to content

Find script tags in an openapi spec #2289

Answered by blueksy1012
blueksy1012 asked this question in Q&A
Discussion options

You must be logged in to vote

I have found that Spectral actually has a default rule for this in their built in "OAS" ruleset. The rule is called "no-script-tags-in-markdown". The rule can be inherited by adding this line to the ruleset file: #extends: [[spectral:oas, all]]

https://meta.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by blueksy1012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant