Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
JSON Schema Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nobody committed Jan 20, 2023
1 parent 9922d0f commit bf7bfd2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
10 changes: 6 additions & 4 deletions config/v3/proposal/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@
"properties": {
"high_barrier": {
"description": "High barrier calculated based on current spot",
"type": "number",
"type": "string",
"pattern": "^[+-]?[0-9]+\\.?[0-9]*$",
"examples": [
4.9358253e-05
42.123
]
},
"last_tick_epoch": {
Expand All @@ -75,9 +76,10 @@
},
"low_barrier": {
"description": "Low barrier calculated based on current spot",
"type": "number",
"type": "string",
"pattern": "^[+-]?[0-9]+\\.?[0-9]*$",
"examples": [
4.9358253e-05
42.123
]
},
"maximum_payout": {
Expand Down
27 changes: 25 additions & 2 deletions config/v3/set_settings/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,31 @@
"properties": {
"set_settings": {
"title": "set_settings",
"description": "1 on success",
"type": "integer"
"description": "Returns notification with proper code and message_to_client",
"type": "object",
"additionalProperties": false,
"required": [
"notification"
],
"properties": {
"notification": {
"description": "Notification message to display on special occasions",
"type": [
"null",
"object"
],
"properties": {
"code": {
"description": "Code which is unique for certain scenarios",
"type": "string"
},
"message_to_client": {
"description": "Message to show to client",
"type": "string"
}
}
}
}
},
"echo_req": {
"description": "Echo of the request made.",
Expand Down

0 comments on commit bf7bfd2

Please sign in to comment.