Skip to content

Fix Optional reflection

Compare
Choose a tag to compare
@mattpolzin mattpolzin released this 03 Mar 01:09
· 15 commits to main since this release
d243491

This fixes a bug where if a type that does not define its OpenAPI schema explicitly was wrapped in an Optional and then set as a property of some type for which a genericOpenAPISchemaGuess() was requested then the generic schema guess would result in the optional being represented as an explicit "some" key in the schema instead of just making the type it wraps optional.