Skip to content
Permalink
Browse files

JSON Schema Update

  • Loading branch information...
binarysysadmin committed Apr 5, 2019
1 parent 0b78c0a commit d3dcd23e7a6955b6b4bfca6b96d65526232421e5
@@ -0,0 +1,4 @@
{
"account_closure": 1,
"reason": "Financial concerns"
}
@@ -0,0 +1,33 @@
{
"$schema" : "http://json-schema.org/draft-04/schema#",
"title" : "Account closure response",

"type" : "object",
"description" : "",
"required" : [
"msg_type",
"echo_req"
],
"properties" : {
"msg_type" : {
"description" : "account_closure",
"type" : "string"
},
"req_id" : {
"type" : "integer",
"description" : "Optional field send in request to map to response, present only when request contains req_id"
},
"echo_req" : {
"description" : "Echo of the request made",
"title" : "Echo request"
},
"account_closure" : {
"enum" : [
0,
1
],
"description" : "If 1, all accounts closed.",
"type" : "integer"
}
}
}
@@ -0,0 +1,33 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"required": [
"account_closure",
"reason"
],
"type": "object",
"description": "This call allows clients to close all their accounts (including virtual-money account). It is assumed that all their accounts (excluding virtual) have no balance left.",
"additionalProperties": false,
"title": "Account closure Send",
"properties": {
"account_closure": {
"description": "Must be 1",
"type": "integer",
"enum": [
1
]
},
"reason": {
"type": "string",
"description": "Reason for closing off accounts.",
"pattern": "^[0-9A-Za-z .,'-]{5,250}$"
},
"req_id": {
"type": "integer",
"description": "Optional field to map request to response"
},
"passthrough": {
"description": "Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.",
"type": "object"
}
}
}
@@ -0,0 +1,4 @@
{
"account_closure": 1,
"reason": "Prevent addiction"
}
@@ -0,0 +1,33 @@
{
"$schema" : "http://json-schema.org/draft-04/schema#",
"title" : "Account closure response",

"type" : "object",
"description" : "",
"required" : [
"msg_type",
"echo_req"
],
"properties" : {
"msg_type" : {
"description" : "account_closure",
"type" : "string"
},
"req_id" : {
"type" : "integer",
"description" : "Optional field send in request to map to response, present only when request contains req_id"
},
"echo_req" : {
"description" : "Echo of the request made",
"title" : "Echo request"
},
"account_closure" : {
"enum" : [
0,
1
],
"description" : "If 1, all accounts closed.",
"type" : "integer"
}
}
}
@@ -0,0 +1,29 @@
{
"$schema": "http://json-schema.org/draft-03/schema#",
"type": "object",
"description": "This call allows clients to close all their accounts (including virtual-money account). It is assumed that all their accounts (excluding virtual) have no balance left.",
"title": "Account closure Send",
"properties": {
"account_closure": {
"description": "Must be 1",
"type": "integer",
"pattern": "^1$",
"required": "1"
},
"reason": {
"type": "string",
"description": "Reason for closing off accounts.",
"pattern": "^[0-9A-Za-z .,'-]{5,250}$",
"required": "1"
},
"req_id": {
"type": "integer",
"description": "Optional field to map request to response"
},
"passthrough": {
"description": "Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.",
"type": "object"
}
},
"additionalProperties": false
}

0 comments on commit d3dcd23

Please sign in to comment.
You can’t perform that action at this time.