This change enables translation of dataclasses into TypeScript schemas. Using dataclasses allows developers to operate over actual Python objects - in contrast, if we took an approach where we only permitted TypedDicts, developers would be restricted to only operating over dictionaries. With this, schemas can be generated from one, the other, or a mix of both.
This change enables translation of dataclasses into TypeScript schemas. Using dataclasses allows developers to operate over actual Python objects - in contrast, if we took an approach where we only permitted
TypedDict
s, developers would be restricted to only operating over dictionaries. With this, schemas can be generated from one, the other, or a mix of both.Fixes #160