https://github.com/liues1992/json2pbdef
generate protobuf definition from json/yaml data
https://github.com/liues1992/json2pbdef
json protobuf yaml
Last synced: 5 months ago
JSON representation
generate protobuf definition from json/yaml data
- Host: GitHub
- URL: https://github.com/liues1992/json2pbdef
- Owner: liues1992
- License: mit
- Created: 2019-01-07T15:07:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-22T15:54:04.000Z (almost 3 years ago)
- Last Synced: 2024-06-20T13:40:59.838Z (about 2 years ago)
- Topics: json, protobuf, yaml
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# json2pbdef
create protobuf definition from json data
# Usage
```
json2pbdef '{"msg":"hello"}'
# output
message Message {
string msg = 1;
}
```
```
json2pbdef input.txt
json2pbdef http://jsonapi.com/some_json_response
cat text.json | json2pbdef
```
# TODO
- List rules that the json data must obey
- Add more tests