Skip to content

Commit

Permalink
feat: add new fields to facial similarity report objects (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
anancarv authored Nov 14, 2024
1 parent 78a91f9 commit 369921f
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
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

0 comments on commit 369921f

Please sign in to comment.