s-knibbs / dataclasses-jsonschema

JSON schema generation from dataclasses
MIT License
167 stars 38 forks source link

Fix missing definitions in Optional[Union] #148

Closed jobh closed 3 years ago

jobh commented 4 years ago

This is a suggested fix for #147.

I'm not familiar with the code, but it looks reasonable and does fix the test case.

Fixes #147