pbjs2typescript
Version:
Typescript definition generator for Protocol Buffer definitions
55 lines • 1.16 kB
JSON
{
"nested": {
"Protocols": {
"nested": {
"First": {
"fields": {
"id": {
"rule": "required",
"type": "int32",
"id": 1
},
"content": {
"type": "Third",
"id": 2
}
}
},
"Models": {
"nested": {
"Third": {
"fields": {
"value": {
"type": "string",
"id": 1
},
"type": {
"type": "ChatDataType",
"id": 3
}
}
},
"ChatDataType": {
"values": {
"MESSAGE": 0,
"EMOTICON": 1
}
},
"Game": {
"nested": {
"Third": {
"fields": {
"value2": {
"type": "string",
"id": 5
}
}
}
}
}
}
}
}
}
}
}