Closed johncalls closed 7 years ago
(For a more detailed description of the underlying problem see issue #72.)
In order to properly cast jsonmodels' objects into python structs and, furthermore, valid json strings, to_struct in parser.py has been modified. It now distinguishes between a ListField, an EmbeddedField and basic field types.
to_struct
parser.py
ListField
EmbeddedField
Furthermore, additional tests have been added to test_struct.py. Please note, that none of these tests will pass without the modifications done in parser.py.
test_struct.py
Ok, thanks! Seems like I should find more generic way for it, but for now it's ok, especially if this works :)
(For a more detailed description of the underlying problem see issue #72.)
In order to properly cast jsonmodels' objects into python structs and, furthermore, valid json strings,
to_struct
inparser.py
has been modified. It now distinguishes between aListField
, anEmbeddedField
and basic field types.Furthermore, additional tests have been added to
test_struct.py
. Please note, that none of these tests will pass without the modifications done inparser.py
.