Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new fields to facial similarity report objects #133

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions schemas/reports/definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,39 @@ report_shared:
$ref: "#/report_name"
description: The name of the report type.

facial_similarity_report_shared:
properties:
live_photos:
type: array
description: Array of objects with live photo ids that were used in the Onfido engine.
items:
$ref: "#/facial_similarity_report_media"
live_videos:
type: array
description: Array of objects with live video ids that were used in the Onfido engine.
items:
$ref: "#/facial_similarity_report_media"
motion_captures:
type: array
description: Array of objects with motion capture ids that were used in the Onfido engine.
items:
$ref: "#/facial_similarity_report_media"
id_photos:
type: array
description: Array of objects with id photo ids that were used in the Onfido engine.
items:
$ref: "#/facial_similarity_report_media"

facial_similarity_report_media:
type: object
required:
- id
properties:
id:
type: string
format: uuid
description: ID of uploaded biometric media to use.

report_status:
type: string
enum:
Expand Down
1 change: 1 addition & 0 deletions schemas/reports/facial_similarity_motion_report.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
allOf:
- $ref: definitions.yaml#/report_shared
- $ref: definitions.yaml#/facial_similarity_report_shared
- type: object
properties:
breakdown:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
allOf:
- $ref: definitions.yaml#/report_shared
- $ref: definitions.yaml#/facial_similarity_report_shared
- type: object
properties:
breakdown:
Expand Down
1 change: 1 addition & 0 deletions schemas/reports/facial_similarity_photo_report.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
allOf:
- $ref: definitions.yaml#/report_shared
- $ref: definitions.yaml#/facial_similarity_report_shared
- type: object
properties:
breakdown:
Expand Down
1 change: 1 addition & 0 deletions schemas/reports/facial_similarity_video_report.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
allOf:
- $ref: definitions.yaml#/report_shared
- $ref: definitions.yaml#/facial_similarity_report_shared
- type: object
properties:
breakdown:
Expand Down