You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When ever I try loading from a file via protobuf-load-stream or via protobuf-load, the returned protobuf object does not yield the encryptedKey and verifyingKey keys, and its str representation doesn't have those keys either, e.g.:
A function that I've written to unpack ByteStrings into byte arrays and translate the protobuf object into a Clojure map depends on being able to seq into the PersistentProtocolBufferMap without losing keys.
This is on Clojure 1.4.0
I can provide a minimal test case. I am not sure whether this is a bug in clojure-protobuf or protobuf itself, but doing (.. protobuf-raw-master-rec def type getFields) does yield the missing fields.
The text was updated successfully, but these errors were encountered:
I believe this is the same error I discovered -- If I am correct, this is because of the mixedCase in the missing keys.
If you were to check your schema you'd find that the keys are :encryptedkey and not :encryptedKey.
However, the actual value is stored with the camelCase key, and so the toString() method is calling .get( ) vs .get () , which returns null and so it's left out of the output
Using the latest release of clojure-protobuf, and this particular .proto definition:
When ever I try loading from a file via protobuf-load-stream or via protobuf-load, the returned protobuf object does not yield the encryptedKey and verifyingKey keys, and its str representation doesn't have those keys either, e.g.:
A function that I've written to unpack ByteStrings into byte arrays and translate the protobuf object into a Clojure map depends on being able to seq into the PersistentProtocolBufferMap without losing keys.
This is on Clojure 1.4.0
I can provide a minimal test case. I am not sure whether this is a bug in clojure-protobuf or protobuf itself, but doing (.. protobuf-raw-master-rec def type getFields) does yield the missing fields.
The text was updated successfully, but these errors were encountered: