-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mutating protobuf.impl.flatland.core.FlatlandProtoBuf
#41
Comments
@barkanido I had faced similar issue when the protobuf message was made of nested proto messages and if the nested message was being enriched with data and To overcome this problem, I came up with following Clojure protocol which converts protobuf object to map:
Above protocol converts the protobuf map into a Clojure map, allowing you to do all sort of map operations Usage is pretty straight forward as well:
You can covert it back to protobuf object for publishing by using the standard library functions. @oubiwann Please let me know if this seems fit enough for PR. This may sit in some utility name-space. |
@oubiwann I have create a PR to resolve this Issue.
Please review it in your time 😄 |
Hey folks, I am evaluating this and testing some simple scenarios of mutation. What I am trying to test is:
now, given this schema:
and this test code:
tests fail with:
Can you explain why
update-in
andmerge
aren't supported and what I (probably) have done wrong?Thanks!
Maybe, put differently, it looks like
PersistentProtocolBufferMap
isn't 100% compatible with a Clojure map:The text was updated successfully, but these errors were encountered: