dbt-labs / hologram

A library for automatically generating Draft 7 JSON Schemas from Python dataclasses
MIT License
9 stars 13 forks source link

Fix/union none multiple #26

Closed cmcarthur closed 4 years ago

cmcarthur commented 4 years ago

hologram was failing when you gave it a Union with multiple arguments + None -- it was interpreting that as an Optional field and short circuiting the schema generation process

the test i added failed before, now it passes