Closed tomgi closed 6 months ago
Hey @tomgi just asked about this issue on the zulip chat. Tried monkey patching your solution on my project and it seems to be working perfectly.
@solnic is there any plans to merge this PR?
Following up on this -- @solnic would merging it be possible? The bug is still in place and this fix is a good one.
I'm sorry it took so long, I'll push a release, thanks for addressing it
Awesome work. Thanks for dedicating your time to fix this :heart:
Fix for https://github.com/dry-rb/dry-schema/issues/400
Objects nested under arrays are not neccesailry arrays themselves - the
:member
option shouldn't be passed down the AST when generating json-schema.For example for the test schema https://github.com/dry-rb/dry-schema/blob/5853103d6849490ae8ba94158f73631c1fd121a8/spec/extensions/json_schema/schema_spec.rb#L28-L34
the result of the fix is: