protodef
Version:
A simple yet powerful way to define binary protocols
25 lines (24 loc) • 440 B
JSON
{
"title": "definitions",
"definitions": {
"contextualizedFieldName": {
"type": "string",
"pattern": "^(this\\.)?.+$"
},
"dataTypeArgsCount": {
"oneOf": [
{
"$ref": "#/definitions/contextualizedFieldName"
},
{
"type": "number"
}
]
},
"fieldName": {
"type": "string",
"pattern": "^[a-zA-Z0-9_]+$"
}
},
"type": "object"
}