Skip to content

Commit 0eec622

Browse files
Remove document property for reports where it's not applicable (#134)
* Remove document property for reports where it's not applicable * A small additional improvement
1 parent 986e957 commit 0eec622

8 files changed

+30
-13
lines changed

schemas/reports/definitions.yaml

+24-5
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,26 @@ report_shared:
2424
type: string
2525
format: uuid
2626
description: The ID of the check to which the report belongs. Read-only.
27-
documents:
28-
type: array
29-
description: Array of objects with document ids that were used in the Onfido engine. [ONLY POPULATED FOR DOCUMENT AND FACIAL SIMILARITY REPORTS]
30-
items:
31-
$ref: report_document.yaml
3227
name:
3328
$ref: "#/report_name"
3429
description: The name of the report type.
3530

31+
document_report_shared:
32+
type: object
33+
properties:
34+
documents:
35+
type: array
36+
description: Array of objects with document ids that were used in the Onfido engine.
37+
items:
38+
$ref: "#/report_document"
39+
3640
facial_similarity_report_shared:
3741
properties:
42+
documents:
43+
type: array
44+
description: Array of objects with document ids that were used in the Onfido engine.
45+
items:
46+
$ref: "#/report_document"
3847
live_photos:
3948
type: array
4049
description: Array of objects with live photo ids that were used in the Onfido engine.
@@ -56,6 +65,16 @@ facial_similarity_report_shared:
5665
items:
5766
$ref: "#/facial_similarity_report_media"
5867

68+
report_document:
69+
type: object
70+
required:
71+
- id
72+
properties:
73+
id:
74+
type: string
75+
format: uuid
76+
description: ID of uploaded document to use.
77+
5978
facial_similarity_report_media:
6079
type: object
6180
required:

schemas/reports/document_report.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
allOf:
22
- $ref: definitions.yaml#/report_shared
3+
- $ref: definitions.yaml#/document_report_shared
34
- type: object
45
properties:
56
breakdown:

schemas/reports/document_video_report.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
allOf:
22
- $ref: definitions.yaml#/report_shared
3+
- $ref: definitions.yaml#/document_report_shared
34
- type: object
45
properties:
56
breakdown:

schemas/reports/document_video_with_address_information_report.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
allOf:
22
- $ref: definitions.yaml#/report_shared
3+
- $ref: definitions.yaml#/document_report_shared
34
- type: object
45
properties:
56
breakdown:

schemas/reports/document_with_address_information_report.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
allOf:
22
- $ref: definitions.yaml#/report_shared
3+
- $ref: definitions.yaml#/document_report_shared
34
- type: object
45
properties:
56
breakdown:

schemas/reports/document_with_driver_verification_report.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
allOf:
22
- $ref: definitions.yaml#/report_shared
3+
- $ref: definitions.yaml#/document_report_shared
34
- type: object
45
properties:
56
breakdown:

schemas/reports/document_with_driving_licence_information_report.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
allOf:
22
- $ref: definitions.yaml#/report_shared
3+
- $ref: definitions.yaml#/document_report_shared
34
- type: object
45
properties:
56
breakdown:

schemas/reports/report_document.yaml

-8
This file was deleted.

0 commit comments

Comments
 (0)