Skip to content

Commit 3cbad72

Browse files
Merge pull request #86 from regulaforensics/SP-13474/Refactor_data_types
SP-13474: Refactor data types
2 parents fee5e4b + a6bde41 commit 3cbad72

4 files changed

Lines changed: 18 additions & 9 deletions

File tree

common.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ components:
126126
range:
127127
type: array
128128
items:
129-
type: float
129+
type: number
130+
format: float
130131
minItems: 2
131132
maxItems: 2
132133
description: "The range of applicable values for this characteristic.
@@ -181,7 +182,8 @@ components:
181182
type: array
182183
description: "The range of set values for this characteristic."
183184
items:
184-
type: float
185+
type: number
186+
format: float
185187
minItems: 2
186188
maxItems: 2
187189
example: [x, y]
@@ -190,7 +192,8 @@ components:
190192
example: 1
191193
description: "The assessment status."
192194
value:
193-
type: float
195+
type: number
196+
format: float
194197
description: "The assessed value for the characteristic, returned in the set units."
195198
example: 0.0
196199

detect.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ components:
7070
description: "Scenario from Request processParam."
7171
$ref: "./common.yml#/components/schemas/FaceQualityScenarios"
7272
timer:
73-
type: float
73+
type: number
74+
format: float
7475
description: "The total time taken for the detection."
7576
example: 0.84793560000000001
7677

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

128129
score:
129-
type: float
130+
type: number
131+
format: float
130132
description: "Returns the estimated portrait quality assessment result,
131133
a number from 0 to 1, where 1 is for absolute compliance."
132134
example: -1.0
133135
timer:
134-
type: float
136+
type: number
137+
format: float
135138
description: "The total time the quality assessment has taken."
136139
example: 0.42036411166191101
137140
roi:

identification.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ components:
9595
detectAll:
9696
$ref: "./matching.yml#/components/schemas/detectAll"
9797
threshold:
98-
type: float
98+
type: number
99+
format: float
99100
description: "The similarity threshold."
100101
limit:
101102
type: integer

match_and_search.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ components:
5454
items:
5555
$ref: './matching.yml#/components/schemas/MatchImageResult'
5656
elapsedTime:
57-
type: float
57+
type: number
58+
format: float
5859
example: 1.317137987
5960
metadata:
6061
type: object
@@ -93,5 +94,6 @@ components:
9394
items:
9495
$ref: '#/components/schemas/PersonWithImages'
9596
rotationAngle:
96-
type: float
97+
type: number
98+
format: float
9799
example: 2.1272900104522705

0 commit comments

Comments
 (0)