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.43k stars 235 forks source link

fix(core): fix error "this.formats.has is not a function" #2651

Closed riccardo-angelilli closed 1 month ago

riccardo-angelilli commented 1 month ago

Fixes https://github.com/stoplightio/spectral/issues/2362

Checklist

Does this PR introduce a breaking change?

riccardo-angelilli commented 1 month ago

fixed PR title

brendarearden commented 1 month ago

Please resolve linting errors to get it ready for review.

riccardo-angelilli commented 1 month ago

I have modified the commit message but the lint is still red

riccardo-angelilli commented 1 month ago

try closing an reopening the PR

riccardo-angelilli commented 1 month ago

I will open a brand new PR.