Skip to content

Commit 435479b

Browse files
cthrashsergey-shandar
authored andcommitted
ComputerVision: bug fixes for /describe and /analyze (#3486)
* Inconsistent argument type for `/analyze?details=...` between URL and stream methods * BingIU imagetype return values needs to be integral * Description `maxCandidates` argument needs to be integral
1 parent 4d99425 commit 435479b

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

specification/cognitiveservices/data-plane/ComputerVision/stable/v2.0/ComputerVision.json

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@
241241
"name": "maxCandidates",
242242
"in": "query",
243243
"description": "Maximum number of candidate descriptions to be returned. The default is 1.",
244-
"type": "string",
244+
"type": "integer",
245245
"required": false,
246-
"default": "1"
246+
"default": 1
247247
},
248248
{
249249
"$ref": "#/parameters/ServiceLanguage"
@@ -458,12 +458,21 @@
458458
"name": "details",
459459
"in": "query",
460460
"description": "A string indicating which domain-specific details to return. Multiple values should be comma-separated. Valid visual feature types include:Celebrities - identifies celebrities if detected in the image.",
461-
"type": "string",
461+
"type": "array",
462462
"required": false,
463-
"enum": [
464-
"Celebrities",
465-
"Landmarks"
466-
]
463+
"collectionFormat": "csv",
464+
"items": {
465+
"type": "string",
466+
"x-nullable": false,
467+
"x-ms-enum": {
468+
"name": "Details",
469+
"modelAsString": false
470+
},
471+
"enum": [
472+
"Celebrities",
473+
"Landmarks"
474+
]
475+
}
467476
},
468477
{
469478
"$ref": "#/parameters/ServiceLanguage"
@@ -615,9 +624,9 @@
615624
"name": "maxCandidates",
616625
"in": "query",
617626
"description": "Maximum number of candidate descriptions to be returned. The default is 1.",
618-
"type": "string",
627+
"type": "integer",
619628
"required": false,
620-
"default": "1"
629+
"default": 1
621630
},
622631
{
623632
"$ref": "#/parameters/ServiceLanguage"
@@ -1258,12 +1267,12 @@
12581267
"description": "An object providing possible image types and matching confidence levels.",
12591268
"properties": {
12601269
"clipArtType": {
1261-
"type": "number",
1270+
"type": "integer",
12621271
"x-nullable": false,
12631272
"description": "Confidence level that the image is a clip art."
12641273
},
12651274
"lineDrawingType": {
1266-
"type": "number",
1275+
"type": "integer",
12671276
"x-nullable": false,
12681277
"description": "Confidence level that the image is a line drawing."
12691278
}
@@ -1294,6 +1303,7 @@
12941303
},
12951304
"isBWImg": {
12961305
"type": "boolean",
1306+
"x-nullable": false,
12971307
"description": "A value indicating if the image is black and white."
12981308
}
12991309
}

0 commit comments

Comments
 (0)