Skip to content

Commit 611dc48

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 a3d12b1 commit 611dc48

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
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1515

1616
### Fixed
1717
- removed superfluous debug print when parsing FunctionImports from metadata - Jakub Filak
18+
- use correct type of deserialization of Literal (URL) structure values - Jakub Filak
1819

1920
## [1.4.0]
2021

pyodata/v2/model.py

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

553553
def from_literal(self, value):
554-
return EdmStructTypeSerializer.from_json(self._edm_type, value)
554+
return EdmStructTypeSerializer.from_literal(self._edm_type, value)
555555

556556

557557
class EnumTypTrait(TypTraits):

0 commit comments

Comments
 (0)