Skip to content

Commit 6d0d8fc

Browse files
committed
model: fix copypasta bug using JSON in Literal desirialization
Tests will appear in the next commit. I don't find it usefull to add the tests here.
1 parent 1c5daa1 commit 6d0d8fc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1616
### Fixed
1717
- removed superfluous debug print when parsing FunctionImports from metadata - Jakub Filak
1818
- property 'Nullable' attributes are correctly parsed and respected - Vasilii Khomutov
19+
- use correct type of deserialization of Literal (URL) structure values - Jakub Filak
1920

2021
## [1.4.0]
2122

pyodata/v2/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def from_json(self, value):
562562
return EdmStructTypeSerializer.from_json(self._edm_type, value)
563563

564564
def from_literal(self, value):
565-
return EdmStructTypeSerializer.from_json(self._edm_type, value)
565+
return EdmStructTypeSerializer.from_literal(self._edm_type, value)
566566

567567

568568
class EnumTypTrait(TypTraits):

0 commit comments

Comments
 (0)