dbt-labs / hologram

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

adds StrEnum, StrLiteral helpers. adds tests for enums. #6

Closed cmcarthur closed 5 years ago

cmcarthur commented 5 years ago

Adds two "helper" types, StrEnum and StrLiteral, that can be easily used to generate str enum and literal types.

Adds tests around these enum generators.