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(rulesets): tweak server variables function #2533

Closed P0lip closed 11 months ago

P0lip commented 11 months ago

Other than the removal of abrupt return when variables was not defined, we now also demand default to be provided in the case of OpenAPI Server Variable objects.

Checklist

Does this PR introduce a breaking change?