Protobuf (proto3) โ JSON Schema ๋ณํ๊ธฐ Proto to Schema
Google Protobuf proto3 ๋ฉ์์ง, Enum, Oneof, Map ๊ตฌ์กฐ๋ฅผ JSON Schema Draft 7/2020-12 ๋ฐ OpenAPI ์คํค๋ง๋ก ์ฆ์ ๋ณํ
PROTO3Protobuf IDL ์ ์ (*.proto)
1
JSON SCHEMA๋ณํ๋ JSON Schema ์คํ
1
SPEC
Protobuf proto3 โ JSON Schema ํ์ค ํ์ ๋งคํ ๊ท์น
string โ { "type": "string" }int32, int64, uint64 โ { "type": "integer" }float, double โ { "type": "number" }bool โ { "type": "boolean" }bytes โ { "type": "string", "contentEncoding": "base64" }Timestamp โ { "type": "string", "format": "date-time" }repeated T โ { "type": "array", "items": ... }oneof โ { "oneOf": [ ... ] }map<K, V> โ { "type": "object", "additionalProperties": ... }enum โ { "type": "string", "enum": [...] }ํด๋ฆฝ๋ณด๋์ ๋ณต์ฌ๋์์ต๋๋ค!
์๊ฒฌ ๋ฐ ์ง๋ฌธ
0์์ง ๋ฑ๋ก๋ ์๊ฒฌ์ด ์์ต๋๋ค. ์ฒซ ๋ฒ์งธ ๋๊ธ์ ๋จ๊ฒจ๋ณด์ธ์!
๋๊ธ ์์
๋๊ธ ์ญ์