eclipse / microprofile-open-api

Microprofile open api
Apache License 2.0
131 stars 81 forks source link

Avoid setting all properties to null in `ModelConstructionTest` #640

Closed Azquelt closed 2 weeks ago

Azquelt commented 2 weeks ago

At some point, I had issues with Schema.booleanSchema() - when the schema is a boolean, rather than an object, it's not defined how the other methods should work.

My solution was to set fields back to null, but that's not necessarily required by the spec - note #558

This is an alternate solution where we test this properly last, rather than via reflection.