interagent / committee

A collection of Rack middleware to support JSON Schema.
MIT License
881 stars 135 forks source link

Raise error when loading OpenAPI 3.1 schema #418

Closed ytjmt closed 6 months ago

ytjmt commented 7 months ago

Hi! Thank you for maintaining this great gem. It can be confusing when the HyperSchema driver is used while loading the OpenAPI 3.1 schema. I think it would be beneficial to raise an error until OpenAPI 3.1 is officially supported.

https://github.com/interagent/committee/issues/303

I just found a problem when I upgrade OpenAPI version in document to 3.1.0. The current implementation has locked version to 3.0.x, and fails finding paths for this document. Current behaviour:

  • runs HyperSchema driver for version OpenAPI version 3.x.x
brandur commented 6 months ago

Thanks @ytjmt! Couldn't hurt to be explicit about this.