Closed Wombatpm closed 1 year ago
We started seeing a similar crash last Friday, preceded by this error (for one of our particular dataclasses, though it seems like maybe the issue is with Union
s?):
Traceback (most recent call last):
File "/var/task/dataclasses_jsonschema/__init__.py", line 296, in _encode_field
encoder = cls.__encode_cache[field_type] # type: ignore
KeyError: typing.Union[str, typing.Dict[str, str]]
Hopefully that's useful extra info...
And reverting to 2.15.1
resolved it for us as well.
Thanks. I tested your changes in our system and they resolve our issues. What is the timeline for next release?
We've been using dataclasses-jsonschema for awhile. After updating from 2.15.1 to 2.15.2. the following errors started to occur:
reverting back to 2.15.1 resolved the error.
Confirmed that the order of variables on line 322 is wrong.