jmlue42 / spectral-jsonapi-ruleset

A Stoplight/Spectral linting ruleset for the JSON:API specification.
MIT License
12 stars 8 forks source link

Support format oas3 in addition to oas3.1? #76

Open DawMatt opened 7 months ago

DawMatt commented 7 months ago

The current ruleset includes support for format oas3.1 but not oas3.

A superficial check of the changes ( https://www.openapis.org/blog/2021/02/16/migrating-from-openapi-3-0-to-3-1-0 ) and the ruleset indicates it doesn't make use of any OAS 3.1 specific features. In particular:

Can we please add oas3 to the supported formats list? i.e.

formats:
  - oas3.1
  - oas3

I've already changed this in a local copy of the ruleset and it appears to be working OK.