github.com/cs3org/reva/v2@v2.27.7/changelog/1.8.0_2021-06-09/improve-share-json-marshal.md (about)

     1  Enhancement: Improve json marshalling of share protobuf messages
     2  
     3  Protobuf oneof fields cannot be properly handled by the native json marshaller,
     4  and the protojson package can only handle proto messages. Previously, we were
     5  using a workaround of storing these oneof fields separately, which made the code
     6  inelegant. Now we marshal these messages as strings before marshalling them via
     7  the native json package.
     8  
     9  https://github.com/cs3org/reva/pull/1655