Skip to content
Snippets Groups Projects
Commit bbb6a85b authored by Krzysztof Leśniak's avatar Krzysztof Leśniak
Browse files

fix get_feed_history test

parent 7cc9286f
No related branches found
No related tags found
No related merge requests found
......@@ -153,6 +153,9 @@
- method: "get_current_price_feed"
- args: {}
- <<: *base_test
- validators:
- <<: *validator_base
- <<: *validator_schema_json
- test:
- name: "get_feed_history"
......@@ -160,6 +163,9 @@
- method: "get_feed_history"
- args: {}
- <<: *base_test
- validators:
- <<: *validator_base
- <<: *validator_schema_json
- test:
- name: "list_witnesses"
......
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"jsonrpc": {
"type": "string"
},
"result": {
"type": "object",
"properties": {
"base": {
"type": "object",
"properties": {
"amount": {
"type": "string",
"pattern": "[1-9][0-9]*"
},
"precision": {
"type": "integer",
"pattern": "^3$"
},
"nai": {
"type": "string",
"pattern": "^@@000000013$"
}
},
"required": [
"amount",
"nai",
"precision"
]
},
"quote": {
"type": "object",
"properties": {
"amount": {
"type": "string",
"pattern": "[1-9][0-9]*"
},
"precision": {
"type": "integer",
"pattern": "^3$"
},
"nai": {
"type": "string",
"pattern": "^@@000000021$"
}
},
"required": [
"amount",
"nai",
"precision"
]
}
},
"required": [
"base",
"quote"
]
},
"id": {
"type": "integer"
}
},
"required": [
"id",
"jsonrpc",
"result"
]
}
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"jsonrpc": {
"type": "string"
},
"result": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"current_median_history": {
"type": "object",
"properties": {
"base": {
"type": "object",
"properties": {
"amount": {
"type": "string",
"pattern": "[1-9][0-9]*"
},
"precision": {
"type": "integer",
"pattern": "^3$"
},
"nai": {
"type": "string",
"pattern": "^@@000000013$"
}
},
"required": [
"amount",
"nai",
"precision"
]
},
"quote": {
"type": "object",
"properties": {
"amount": {
"type": "string",
"pattern": "[1-9][0-9]*"
},
"precision": {
"type": "integer",
"pattern": "^3$"
},
"nai": {
"type": "string",
"pattern": "^@@000000021$"
}
},
"required": [
"amount",
"nai",
"precision"
]
}
},
"required": [
"base",
"quote"
]
},
"price_history": {
"type": "array",
"items": {
"type": "object",
"properties": {
"base": {
"type": "object",
"properties": {
"amount": {
"type": "string",
"pattern": "[1-9][0-9]*"
},
"precision": {
"type": "integer",
"pattern": "^3$"
},
"nai": {
"type": "string",
"pattern": "^@@000000013$"
}
},
"required": [
"amount",
"nai",
"precision"
]
},
"quote": {
"type": "object",
"properties": {
"amount": {
"type": "string",
"pattern": "[1-9][0-9]*"
},
"precision": {
"type": "integer",
"pattern": "^3$"
},
"nai": {
"type": "string",
"pattern": "^@@000000021$"
}
},
"required": [
"amount",
"nai",
"precision"
]
}
},
"required": [
"base",
"quote"
]
}
}
},
"required": [
"current_median_history",
"id",
"price_history"
]
},
"id": {
"type": "integer"
}
},
"required": [
"id",
"jsonrpc",
"result"
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment