Skip to content

Commit e836b43

Browse files
SP-13474: Refactor data types
1 parent 9dce5e3 commit e836b43

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.
@@ -166,7 +167,8 @@ components:
166167
type: array
167168
description: "The range of set values for this characteristic."
168169
items:
169-
type: float
170+
type: number
171+
format: float
170172
minItems: 2
171173
maxItems: 2
172174
example: [x, y]
@@ -175,7 +177,8 @@ components:
175177
example: 1
176178
description: "The assessment status."
177179
value:
178-
type: float
180+
type: number
181+
format: float
179182
description: "The assessed value for the characteristic, returned in the set units."
180183
example: 0.0
181184

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)