go-openapi / spec

openapi specification object model
Apache License 2.0
389 stars 98 forks source link

fixed json unmarshal for BoolOrSchema #168

Closed fredbi closed 9 months ago

fredbi commented 9 months ago

According to the json draft 4 (or later) spec, empty schema is equivalent to true.

fredbi commented 9 months ago

WIP: I am currently testing this branch against go-swagger's full test suite

fredbi commented 9 months ago

Seems ok on go-swagger CI.