You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.
They are related. But while #187 brings a specific problem (str | None) and schema creation, this is about the pipe operator and data class creation error. The root cause is probably the same.
Actual result:
{'numbers': Numbers(roman='X')}
Expected result:
{'numbers': {'roman': 'X'}}
I think the problem can be fixed in either _get_field_type_name or in
dataclasses-jsonschema/dataclasses_jsonschema/__init__.py
Line 391 in 648ada2
Note:
These work as expected:
The text was updated successfully, but these errors were encountered: