-
Notifications
You must be signed in to change notification settings - Fork 5.5k
create new TA preview API v3.1-preview.2 #10440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 18 commits
5787a88
4149f66
9836271
f7062ca
e38d49c
ebe6e08
8983fbb
34cf2bd
d0d866f
02111dc
60d2534
a55e796
4fdcf68
3c1e812
7a6b918
c8562cb
14c9a52
0c50e96
449997b
de5f432
89ff1fe
76fd1cb
a64c2bd
877b90a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -595,4 +595,4 @@ | |
"x-ms-skip-url-encoding": true | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,10 +77,16 @@ | |
"$ref": "#/definitions/EntitiesResult" | ||
} | ||
}, | ||
"default": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You probably want to keep the default (e.g. what are you returning on a 429 response?) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure I will add those There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added |
||
"description": "Error Response", | ||
"400": { | ||
"description": "Bad Request.", | ||
"schema": { | ||
"$ref": "#/definitions/TextAnalyticsError" | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
}, | ||
"500": { | ||
"description": "Internal error response", | ||
"schema": { | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
|
@@ -135,10 +141,16 @@ | |
"$ref": "#/definitions/EntitiesResult" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error Response", | ||
"400": { | ||
"description": "Bad Request.", | ||
"schema": { | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
}, | ||
"500": { | ||
"description": "Internal error response", | ||
"schema": { | ||
"$ref": "#/definitions/TextAnalyticsError" | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
|
@@ -193,10 +205,16 @@ | |
"$ref": "#/definitions/EntityLinkingResult" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error Response", | ||
"400": { | ||
"description": "Bad Request.", | ||
"schema": { | ||
"$ref": "#/definitions/TextAnalyticsError" | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
}, | ||
"500": { | ||
"description": "Internal error response", | ||
"schema": { | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
|
@@ -251,10 +269,16 @@ | |
"$ref": "#/definitions/KeyPhraseResult" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error Response", | ||
"400": { | ||
"description": "Bad Request.", | ||
"schema": { | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
}, | ||
"500": { | ||
"description": "Internal error response", | ||
"schema": { | ||
"$ref": "#/definitions/TextAnalyticsError" | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
|
@@ -309,10 +333,16 @@ | |
"$ref": "#/definitions/LanguageResult" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error Response", | ||
"400": { | ||
"description": "Bad Request.", | ||
"schema": { | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
}, | ||
"500": { | ||
"description": "Internal error response", | ||
"schema": { | ||
"$ref": "#/definitions/TextAnalyticsError" | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
|
@@ -367,10 +397,16 @@ | |
"$ref": "#/definitions/SentimentResponse" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error Response", | ||
"400": { | ||
"description": "Bad Request.", | ||
"schema": { | ||
"$ref": "#/definitions/TextAnalyticsError" | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
}, | ||
"500": { | ||
"description": "Internal error response", | ||
"schema": { | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
|
@@ -440,6 +476,19 @@ | |
} | ||
} | ||
}, | ||
"ErrorResponse": { | ||
"type": "object", | ||
"required": [ | ||
"error" | ||
], | ||
"properties": { | ||
"error": { | ||
"type": "object", | ||
"description": "Document Error.", | ||
"$ref": "#/definitions/TextAnalyticsError" | ||
} | ||
} | ||
}, | ||
"TextAnalyticsError": { | ||
"type": "object", | ||
"required": [ | ||
|
Uh oh!
There was an error while loading. Please reload this page.