You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: specification/cognitiveservices/data-plane/ComputerVision/stable/v2.0/ComputerVision.json
+21-11Lines changed: 21 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -241,9 +241,9 @@
241
241
"name": "maxCandidates",
242
242
"in": "query",
243
243
"description": "Maximum number of candidate descriptions to be returned. The default is 1.",
244
-
"type": "string",
244
+
"type": "integer",
245
245
"required": false,
246
-
"default": "1"
246
+
"default": 1
247
247
},
248
248
{
249
249
"$ref": "#/parameters/ServiceLanguage"
@@ -458,12 +458,21 @@
458
458
"name": "details",
459
459
"in": "query",
460
460
"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",
462
462
"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
+
}
467
476
},
468
477
{
469
478
"$ref": "#/parameters/ServiceLanguage"
@@ -615,9 +624,9 @@
615
624
"name": "maxCandidates",
616
625
"in": "query",
617
626
"description": "Maximum number of candidate descriptions to be returned. The default is 1.",
618
-
"type": "string",
627
+
"type": "integer",
619
628
"required": false,
620
-
"default": "1"
629
+
"default": 1
621
630
},
622
631
{
623
632
"$ref": "#/parameters/ServiceLanguage"
@@ -1258,12 +1267,12 @@
1258
1267
"description": "An object providing possible image types and matching confidence levels.",
1259
1268
"properties": {
1260
1269
"clipArtType": {
1261
-
"type": "number",
1270
+
"type": "integer",
1262
1271
"x-nullable": false,
1263
1272
"description": "Confidence level that the image is a clip art."
1264
1273
},
1265
1274
"lineDrawingType": {
1266
-
"type": "number",
1275
+
"type": "integer",
1267
1276
"x-nullable": false,
1268
1277
"description": "Confidence level that the image is a line drawing."
1269
1278
}
@@ -1294,6 +1303,7 @@
1294
1303
},
1295
1304
"isBWImg": {
1296
1305
"type": "boolean",
1306
+
"x-nullable": false,
1297
1307
"description": "A value indicating if the image is black and white."
0 commit comments