Skip to content

Commit a53b361

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 7043c67 commit a53b361

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

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

1819
## [1.4.0]
1920

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)