Skip to content

Commit fad9bfe

Browse files
author
nobody
committed
JSON Schema Update
1 parent 1360c58 commit fad9bfe

File tree

4 files changed

+92
-0
lines changed

4 files changed

+92
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"exchange_verification_code": "1",
3+
"type": "account_opening",
4+
"verification_code": "abCD0123"
5+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "Exchange Verification Code (response)",
4+
"description": "Exchange Verification Code Response",
5+
"type": "object",
6+
"required": [
7+
"echo_req",
8+
"msg_type"
9+
],
10+
"properties": {
11+
"exchange_verification_code": {
12+
"title": "exchange_verification_code",
13+
"description": "Exchange Verification Code details",
14+
"type": "object",
15+
"additionalProperties": false,
16+
"required": [
17+
"new_verification_code"
18+
],
19+
"properties": {
20+
"new_verification_code": {
21+
"description": "The new code generated after successful verification",
22+
"type": "string"
23+
}
24+
}
25+
},
26+
"echo_req": {
27+
"description": "Echo of the request made.",
28+
"type": "object"
29+
},
30+
"msg_type": {
31+
"description": "Action name of the request made.",
32+
"type": "string",
33+
"enum": [
34+
"exchange_verification_code"
35+
]
36+
},
37+
"req_id": {
38+
"description": "Optional field sent in request to map to response, present only when request contains `req_id`.",
39+
"type": "integer"
40+
}
41+
}
42+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "Exchange Verification Code (request)",
4+
"description": "Verifies the code and returns a new code if verification is successful",
5+
"type": "object",
6+
"auth_required": 0,
7+
"additionalProperties": false,
8+
"required": [
9+
"exchange_verification_code",
10+
"verification_code"
11+
],
12+
"properties": {
13+
"exchange_verification_code": {
14+
"description": "Must be `1`",
15+
"type": "integer",
16+
"enum": [
17+
1
18+
]
19+
},
20+
"type": {
21+
"description": "[Optional] Purpose of the token exchange.",
22+
"type": "string",
23+
"default": "account_opening",
24+
"enum": [
25+
"account_opening"
26+
]
27+
},
28+
"verification_code": {
29+
"description": "Email verification code (received from a `verify_email` call which must be done first).",
30+
"type": "string",
31+
"pattern": "^\\w{8,128}$",
32+
"sensitive": 1
33+
},
34+
"passthrough": {
35+
"description": "[Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field.",
36+
"type": "object"
37+
},
38+
"req_id": {
39+
"description": "[Optional] Used to map request to response.",
40+
"type": "integer"
41+
}
42+
}
43+
}

static/data/v3.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ groups:
6363
title: Economic Calendar
6464
- name: exchange_rates
6565
title: Exchange Rates
66+
- name: exchange_verification_code
67+
title: Exchange Verification Code
6668
- name: financial_assessment_questions
6769
title: Financial Assessment Questions
6870
- name: forget

0 commit comments

Comments
 (0)