Skip to content

Commit 66d6390

Browse files
laramumethediris
andauthored
create new TA preview API v3.1-preview.2 (#10440)
* updated model names in preview version to be consistent with stable version to avoid breaking changes in client side code * changed swagger files * new preview API v3.1-preview.2 * new preview API v3.1-preview.2 * new preview API v3.1-preview.2 * Add the changes to the swagger * new preview API * sync with v3.2-preview.1 API conventions * fix build issues * fix build issues * fix build issues * fix build issues * fix build issues * fix build issues * resolve PR comments * fix prettier check * fix prettier check in v2.1 * resolve PR comments * resolve PR comments * resolve PR comments Co-authored-by: Thaminda Edirisooriya <[email protected]>
1 parent 6703e4c commit 66d6390

File tree

11 files changed

+2350
-125
lines changed

11 files changed

+2350
-125
lines changed

specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.0-preview.1/TextAnalytics.json

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"default": {
8181
"description": "Error Response",
8282
"schema": {
83-
"$ref": "#/definitions/TextAnalyticsError"
83+
"$ref": "#/definitions/ErrorResponse"
8484
}
8585
}
8686
},
@@ -138,7 +138,7 @@
138138
"default": {
139139
"description": "Error Response",
140140
"schema": {
141-
"$ref": "#/definitions/TextAnalyticsError"
141+
"$ref": "#/definitions/ErrorResponse"
142142
}
143143
}
144144
},
@@ -196,7 +196,7 @@
196196
"default": {
197197
"description": "Error Response",
198198
"schema": {
199-
"$ref": "#/definitions/TextAnalyticsError"
199+
"$ref": "#/definitions/ErrorResponse"
200200
}
201201
}
202202
},
@@ -254,7 +254,7 @@
254254
"default": {
255255
"description": "Error Response",
256256
"schema": {
257-
"$ref": "#/definitions/TextAnalyticsError"
257+
"$ref": "#/definitions/ErrorResponse"
258258
}
259259
}
260260
},
@@ -312,7 +312,7 @@
312312
"default": {
313313
"description": "Error Response",
314314
"schema": {
315-
"$ref": "#/definitions/TextAnalyticsError"
315+
"$ref": "#/definitions/ErrorResponse"
316316
}
317317
}
318318
},
@@ -370,7 +370,7 @@
370370
"default": {
371371
"description": "Error Response",
372372
"schema": {
373-
"$ref": "#/definitions/TextAnalyticsError"
373+
"$ref": "#/definitions/ErrorResponse"
374374
}
375375
}
376376
},
@@ -440,6 +440,19 @@
440440
}
441441
}
442442
},
443+
"ErrorResponse": {
444+
"type": "object",
445+
"required": [
446+
"error"
447+
],
448+
"properties": {
449+
"error": {
450+
"type": "object",
451+
"description": "Document Error.",
452+
"$ref": "#/definitions/TextAnalyticsError"
453+
}
454+
}
455+
},
443456
"TextAnalyticsError": {
444457
"type": "object",
445458
"required": [

0 commit comments

Comments
 (0)