Skip to content
Snippets Groups Projects
Commit e2ea8802 authored by inso's avatar inso
Browse files

Fix schemas of tx/history

parent cd182031
No related branches found
No related tags found
No related merge requests found
......@@ -47,10 +47,10 @@ class History(Tx):
"$ref": "#/definitions/transaction_data"
},
"sending": {
"$ref": "#/definitions/transaction_data"
"$ref": "#/definitions/transactioning_data"
},
"receiving": {
"$ref": "#/definitions/transaction_data"
"$ref": "#/definitions/transactioning_data"
},
},
"required": ["sent", "received", "sending", "receiving"]
......@@ -105,6 +105,49 @@ class History(Tx):
"required": ["version", "issuers", "inputs", "outputs",
"comment", "signatures", "hash", "block_number", "time"]
}
},
"transactioning_data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"version": {
"type": "number"
},
"issuers": {
"type": "array",
"items": {
"type": "string"
}
},
"inputs": {
"type": "array",
"items": {
"type": "string"
}
},
"outputs": {
"type": "array",
"items": {
"type": "string"
}
},
"comment": {
"type": "string"
},
"signatures": {
"type": "array",
"items": {
"type": "string"
}
},
"hash": {
"type": "string"
},
},
"required": ["version", "issuers", "inputs", "outputs",
"comment", "signatures", "hash"]
}
}
},
"required": ["currency", "pubkey", "history"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment