stoplightio / spectral

A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI v3.1, v3.0, and v2.0 as well as AsyncAPI v2.x.
https://stoplight.io/spectral
Apache License 2.0
2.37k stars 228 forks source link

refactor(rulesets): simplify oasOpSecurityDefined #2537

Closed P0lip closed 10 months ago

P0lip commented 10 months ago

Related to #2529 The rule itself works fine, but I thought I'd simplify the function while at it. The changes here do not affect how the yielded results.

Checklist

Does this PR introduce a breaking change?

stoplight-bot commented 9 months ago

:tada: This PR is included in version 1.18.0 :tada:

The release is available on @stoplight/spectral-rulesets-1.18.0

Your semantic-release bot :package::rocket: