Skip to content

Commit f1350b3

Browse files
author
nobody
committed
JSON Schema Update
1 parent d65c30f commit f1350b3

File tree

1 file changed

+142
-110
lines changed

1 file changed

+142
-110
lines changed

config/v3/kyc_auth_status/receive.json

Lines changed: 142 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"additionalProperties": false,
2020
"required": [
2121
"address",
22-
"identity"
22+
"identity",
23+
"risk_classification"
2324
],
2425
"properties": {
2526
"address": {
@@ -111,76 +112,91 @@
111112
]
112113
},
113114
"supported_documents": {
114-
"description": "Supported documents per service.",
115-
"type": "object",
116-
"properties": {
117-
"idv": {
118-
"type": "object",
119-
"additionalProperties": {
115+
"description": "Supported documents.",
116+
"type": "array",
117+
"items": {
118+
"type": "object",
119+
"properties": {
120+
"additional": {
121+
"description": "Additional information required by the document type.",
120122
"type": "object",
121123
"properties": {
122-
"additional": {
123-
"type": "object",
124-
"properties": {
125-
"display_name": {
126-
"type": "string"
127-
},
128-
"format": {
129-
"type": "string"
130-
}
131-
}
132-
},
133124
"display_name": {
125+
"description": "Additional display name.",
134126
"type": "string"
135127
},
136-
"format": {
128+
"document_type": {
129+
"description": "Additional document type.",
137130
"type": "string"
138-
}
139-
}
140-
}
141-
},
142-
"manual": {
143-
"type": "object",
144-
"additionalProperties": {
145-
"type": "object",
146-
"properties": {
147-
"display_name": {
131+
},
132+
"example_format": {
133+
"description": "Additional example format.",
148134
"type": "string"
149-
}
150-
}
151-
}
152-
},
153-
"onfido": {
154-
"type": "object",
155-
"additionalProperties": {
156-
"type": "object",
157-
"properties": {
158-
"display_name": {
135+
},
136+
"format": {
137+
"description": "Additional document format.",
159138
"type": "string"
139+
},
140+
"sides": {
141+
"description": "Additional document sides.",
142+
"type": "array",
143+
"items": {
144+
"type": "string"
145+
}
160146
}
161147
}
162-
}
163-
}
164-
}
165-
},
166-
"supported_documents_override": {
167-
"description": "Supported documents override per service.",
168-
"type": "object",
169-
"properties": {
170-
"manual": {
171-
"type": "object",
172-
"additionalProperties": {
173-
"type": "object",
174-
"properties": {
175-
"display_name": {
176-
"type": "string"
177-
}
148+
},
149+
"available_services": {
150+
"description": "Services that support this document type.",
151+
"type": "array",
152+
"items": {
153+
"type": "string"
154+
}
155+
},
156+
"display_name": {
157+
"description": "Display name of the document type.",
158+
"type": "string"
159+
},
160+
"document_type": {
161+
"description": "The document type.",
162+
"type": "string"
163+
},
164+
"example_format": {
165+
"description": "Example format.",
166+
"type": "string"
167+
},
168+
"format": {
169+
"description": "Document format.",
170+
"type": "string"
171+
},
172+
"has_visual_sample": {
173+
"description": "A flag to indicate if the document has a visual sample.",
174+
"type": "boolean"
175+
},
176+
"lifetime_valid": {
177+
"description": "Flag to indicate if the document expires or not. Documents that expire have an expiration date",
178+
"type": "boolean"
179+
},
180+
"sides": {
181+
"description": "Document sides.",
182+
"type": "array",
183+
"items": {
184+
"type": "string"
178185
}
179186
}
180187
}
181188
}
182189
}
183190
}
191+
},
192+
"risk_classification": {
193+
"description": "Risk classification of the client.",
194+
"type": "string",
195+
"enum": [
196+
"low",
197+
"standard",
198+
"high"
199+
]
184200
}
185201
}
186202
},
@@ -192,7 +208,8 @@
192208
"additionalProperties": false,
193209
"required": [
194210
"address",
195-
"identity"
211+
"identity",
212+
"risk_classification"
196213
],
197214
"properties": {
198215
"address": {
@@ -284,76 +301,91 @@
284301
]
285302
},
286303
"supported_documents": {
287-
"description": "Supported documents per service.",
288-
"type": "object",
289-
"properties": {
290-
"idv": {
291-
"type": "object",
292-
"additionalProperties": {
304+
"description": "Supported documents.",
305+
"type": "array",
306+
"items": {
307+
"type": "object",
308+
"properties": {
309+
"additional": {
310+
"description": "Additional information required by the document type.",
293311
"type": "object",
294312
"properties": {
295-
"additional": {
296-
"type": "object",
297-
"properties": {
298-
"display_name": {
299-
"type": "string"
300-
},
301-
"format": {
302-
"type": "string"
303-
}
304-
}
305-
},
306313
"display_name": {
314+
"description": "Additional display name.",
307315
"type": "string"
308316
},
309-
"format": {
317+
"document_type": {
318+
"description": "Additional document type.",
310319
"type": "string"
311-
}
312-
}
313-
}
314-
},
315-
"manual": {
316-
"type": "object",
317-
"additionalProperties": {
318-
"type": "object",
319-
"properties": {
320-
"display_name": {
320+
},
321+
"example_format": {
322+
"description": "Additional example format.",
321323
"type": "string"
322-
}
323-
}
324-
}
325-
},
326-
"onfido": {
327-
"type": "object",
328-
"additionalProperties": {
329-
"type": "object",
330-
"properties": {
331-
"display_name": {
324+
},
325+
"format": {
326+
"description": "Additional document format.",
332327
"type": "string"
328+
},
329+
"sides": {
330+
"description": "Additional document sides.",
331+
"type": "array",
332+
"items": {
333+
"type": "string"
334+
}
333335
}
334336
}
335-
}
336-
}
337-
}
338-
},
339-
"supported_documents_override": {
340-
"description": "Supported documents override per service.",
341-
"type": "object",
342-
"properties": {
343-
"manual": {
344-
"type": "object",
345-
"additionalProperties": {
346-
"type": "object",
347-
"properties": {
348-
"display_name": {
349-
"type": "string"
350-
}
337+
},
338+
"available_services": {
339+
"description": "Services that support this document type.",
340+
"type": "array",
341+
"items": {
342+
"type": "string"
343+
}
344+
},
345+
"display_name": {
346+
"description": "Display name of the document type.",
347+
"type": "string"
348+
},
349+
"document_type": {
350+
"description": "The document type.",
351+
"type": "string"
352+
},
353+
"example_format": {
354+
"description": "Example format.",
355+
"type": "string"
356+
},
357+
"format": {
358+
"description": "Document format.",
359+
"type": "string"
360+
},
361+
"has_visual_sample": {
362+
"description": "A flag to indicate if the document has a visual sample.",
363+
"type": "boolean"
364+
},
365+
"lifetime_valid": {
366+
"description": "Flag to indicate if the document expires or not. Documents that expire have an expiration date",
367+
"type": "boolean"
368+
},
369+
"sides": {
370+
"description": "Document sides.",
371+
"type": "array",
372+
"items": {
373+
"type": "string"
351374
}
352375
}
353376
}
354377
}
355378
}
356379
}
380+
},
381+
"risk_classification": {
382+
"description": "Risk classification of the client.",
383+
"type": "string",
384+
"enum": [
385+
"low",
386+
"standard",
387+
"high"
388+
]
357389
}
358390
}
359391
},

0 commit comments

Comments
 (0)