Skip to content

Commit

Permalink
model: fix copypasta bug using JSON in Literal desirialization
Browse files Browse the repository at this point in the history
Tests will appear in the next commit. I don't find it usefull
to add the tests here.
  • Loading branch information
filak-sap committed Apr 30, 2020
1 parent 16a15fb commit 334aa03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
- removed superfluous debug print when parsing FunctionImports from metadata - Jakub Filak
- property 'Nullable' attributes are correctly parsed and respected - Vasilii Khomutov
- use correct type of deserialization of Literal (URL) structure values - Jakub Filak

## [1.4.0]

Expand Down
2 changes: 1 addition & 1 deletion pyodata/v2/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def from_json(self, value):
return EdmStructTypeSerializer.from_json(self._edm_type, value)

def from_literal(self, value):
return EdmStructTypeSerializer.from_json(self._edm_type, value)
return EdmStructTypeSerializer.from_literal(self._edm_type, value)


class EnumTypTrait(TypTraits):
Expand Down

0 comments on commit 334aa03

Please sign in to comment.