diff --git a/config/v3/proposal/receive.json b/config/v3/proposal/receive.json index 88609f09..b0d932ac 100644 --- a/config/v3/proposal/receive.json +++ b/config/v3/proposal/receive.json @@ -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": { @@ -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": { diff --git a/config/v3/set_settings/receive.json b/config/v3/set_settings/receive.json index 06b716da..631f6b11 100644 --- a/config/v3/set_settings/receive.json +++ b/config/v3/set_settings/receive.json @@ -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.",