s-knibbs / dataclasses-jsonschema

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

NewType field encoder not called when converting to dataclass #115

Closed s-knibbs closed 4 years ago

s-knibbs commented 4 years ago

Custom field encoders for NewType fields are not called in from_dict due to the order in which the type conditionals are tested.

Instead, the generic behaviour is used which will perform the conversion based on the supertype.