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

SP-13474: Refactor data types #86

Merged
merged 2 commits into from
Feb 6, 2024
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
9 changes: 6 additions & 3 deletions common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ components:
range:
type: array
items:
type: float
type: number
format: float
minItems: 2
maxItems: 2
description: "The range of applicable values for this characteristic.
Expand Down Expand Up @@ -181,7 +182,8 @@ components:
type: array
description: "The range of set values for this characteristic."
items:
type: float
type: number
format: float
minItems: 2
maxItems: 2
example: [x, y]
Expand All @@ -190,7 +192,8 @@ components:
example: 1
description: "The assessment status."
value:
type: float
type: number
format: float
description: "The assessed value for the characteristic, returned in the set units."
example: 0.0

Expand Down
9 changes: 6 additions & 3 deletions detect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ components:
description: "Scenario from Request processParam."
$ref: "./common.yml#/components/schemas/FaceQualityScenarios"
timer:
type: float
type: number
format: float
description: "The total time taken for the detection."
example: 0.84793560000000001

Expand Down Expand Up @@ -126,12 +127,14 @@ components:
$ref: "./common.yml#/components/schemas/QualityDetail"

score:
type: float
type: number
format: float
description: "Returns the estimated portrait quality assessment result,
a number from 0 to 1, where 1 is for absolute compliance."
example: -1.0
timer:
type: float
type: number
format: float
description: "The total time the quality assessment has taken."
example: 0.42036411166191101
roi:
Expand Down
3 changes: 2 additions & 1 deletion identification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ components:
detectAll:
$ref: "./matching.yml#/components/schemas/detectAll"
threshold:
type: float
type: number
format: float
description: "The similarity threshold."
limit:
type: integer
Expand Down
6 changes: 4 additions & 2 deletions match_and_search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ components:
items:
$ref: './matching.yml#/components/schemas/MatchImageResult'
elapsedTime:
type: float
type: number
format: float
example: 1.317137987
metadata:
type: object
Expand Down Expand Up @@ -93,5 +94,6 @@ components:
items:
$ref: '#/components/schemas/PersonWithImages'
rotationAngle:
type: float
type: number
format: float
example: 2.1272900104522705
Loading