protodef
Version:
A simple yet powerful way to define binary protocols
25 lines • 494 B
JSON
{
"$schema": "http://json-schema.org/draft-04/schema#",
"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"
}