devongovett / protobuf-jsonschema

Compiles Protobuf IDL to JSON Schema
119 stars 37 forks source link

binary should be converted to type string with content encoding base64 #9

Open iguberman opened 5 years ago

iguberman commented 5 years ago

According to https://developers.google.com/protocol-buffers/docs/proto3#json bytes should be base64 string: which translates to

"type": "string"
"contentEncoding": "base64"