在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:devongovett/protobuf-jsonschema开源软件地址:https://github.com/devongovett/protobuf-jsonschema开源编程语言:JavaScript 100.0%开源软件介绍:protobuf-jsonschemaCompiles Protocol Buffer IDL to JSON Schema definitions. UsageYou can use The CLI can output JSON or YAML (e.g. for Swagger). If you specify a protobuf message name along with a file, it will output just that message and all dependencies. Otherwise, it will output all messages. $ npm install protobuf-jsonschema -g
$ protobuf-jsonschema --help
Usage: protobuf-jsonschema [options] <file> [model]
Options:
-h, --help output usage information
-V, --version output the version number
-f, --format [format] output format: json or yaml [json] In node, var compile = require('protobuf-jsonschema');
var all = compile('models.proto');
var single = compile('models.proto', 'MyModel'); LicenseMIT |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论