Skip to content

Instantly share code, notes, and snippets.

@ishiduca
Created July 17, 2018 03:26
Show Gist options
  • Save ishiduca/e0377c6d192d36d97780c0df35adb0e8 to your computer and use it in GitHub Desktop.
Save ishiduca/e0377c6d192d36d97780c0df35adb0e8 to your computer and use it in GitHub Desktop.
jsonschema for jsonrpc2.0
{
"type": "object",
"required": true,
"additionalProperties": false,
"properties": {
"jsonrpc": {
"name": "jsonrpc",
"type": "string",
"required": true,
"enum": [
"2.0"
],
"addionalPropeties": false
},
"id": {
"name": "id",
"type": [
"null",
"number",
"string"
],
"required": true,
"addionalPropeties": false
},
"method": {
"name": "method",
"type": "string",
"required": true,
"addionalPropeties": false
},
"params": {
"name": "params",
"type": [
"object",
"array"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment