-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve json marshalling of share protobuf messages
- Loading branch information
Showing
3 changed files
with
34 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Enhancement: Improve json marshalling of share protobuf messages | ||
|
||
Protobuf oneof fields cannot be properly handled by the native json marshaller, | ||
and the protojson package can only handle proto messages. Previously, we were | ||
using a workaround of storing these oneof fields separately, which made the code | ||
inelegant. Now we marshal these messages as strings before marshalling them via | ||
the native json package. | ||
|
||
https://github.com/cs3org/reva/pull/1655 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters