Skip to content

Commit 3cdf60d

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 5b38cba commit 3cdf60d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212
### Changed
1313
- both Literal and JSON DateTimes has Timezone set to UTC - Jakub Filak
1414

15+
### Fixed
16+
- use correct type of deserialization of Literal (URL) structure values - Jakub Filak
1517

1618
## [1.4.0]
1719

pyodata/v2/model.py

+1-1
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)