hyperledger / hyperledger/fabric-protos

[nodebinding] missing FromOject alternative

Open
#113 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Protocol Buffer
Stars
43
Forks
75
Avg merge
16h 55m
Merged PRs (30d)
5

Description

**I want** a way to transform a javascript object(or json) to a protobuf binary without set attribute mannually to align schema.
We have found a simple way to do so when using `fabric-protos`, which depended on protobufjs
```
typeObject.encode(JSObject).finish()
```
where the typeObject is the type constructor or type itself such as gateway.EvaluateRequest

Now I wonder if we can have similar clean solution now in `@hyperledger/fabric-protos`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.