Deserialization of extended types inside a container type fails
See original GitHub issueThe following fails to deserialize. It seems that in the “more types” deserializer (for Path
) the Optional[Path]
field is passed. The deserializer in more_types.py
then complains that Optional
is an unsupported type. Same thing happens with other container types (e.g. List
).
@deserialize
@dataclass
class Foo:
bar: Optional[Path]
from_json(Foo, '{"bar": "/asdf"}')
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Can Jackson polymorphic deserialization be used to serialize ...
It basically allows omitting of actual Type Id field or value, as long as the subtype can be deduced ( @JsonTypeInfo(use=DEDUCTION) ) from ......
Read more >Java JSON deserialization problems with the Jackson ... - Snyk
Learn how Jackson ObjectMapper deserialization vulnerabilities work and how to make sure you are not affected by them.
Read more >[JDK-8199664] Deserialization fails when subclass contains ...
The class has a subclass with a field of any hash container type (e.g. HashMap, HashSet, etc.). * The hash container in the...
Read more >Deserializing subclass of map fails when field is defined as an ...
You say that the type property should be set to the type of the values in the map, however that is not what...
Read more >Deserialization - OWASP Cheat Sheet Series
Serialization is the process of turning some object into a data format that can be restored later. People often serialize objects in order...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@yukinarit Thank you very much! It is fixed for me 😃
Hi @jfuechsl, pyserde 0.2.1 was released! Please check! ツ