Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -595,4 +595,4 @@
"x-ms-skip-url-encoding": true
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,16 @@
"$ref": "#/definitions/EntitiesResult"
}
},
"default": {
Copy link
Member

Choose a reason for hiding this comment

The 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?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure I will add those

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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"
}
}
},
Expand Down Expand Up @@ -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"
}
}
},
Expand Down Expand Up @@ -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"
}
}
},
Expand Down Expand Up @@ -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"
}
}
},
Expand Down Expand Up @@ -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"
}
}
},
Expand Down Expand Up @@ -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"
}
}
},
Expand Down Expand Up @@ -440,6 +476,19 @@
}
}
},
"ErrorResponse": {
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"description": "Document Error.",
"$ref": "#/definitions/TextAnalyticsError"
}
}
},
"TextAnalyticsError": {
"type": "object",
"required": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@
"type": "boolean",
"required": false
},
{
"name": "stringIndexType",
"in": "query",
"description": "(Optional) This value indicates the index type for which the offsets have to be returned.",
"type": "string",
"enum" : [ "textelement_v8", "unicodecodepoint", "utf16codeunit" ],
"default" : "textelement_v8",
"required": false
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see my v3.2-preview.1 PR. It includes v3.1-preview.1 updates that should be incorporated here as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have synced this with that PR and this also follows the same conventions now

{
"in": "body",
"name": "input",
Expand All @@ -77,10 +86,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"
}
}
},
Expand Down Expand Up @@ -118,6 +133,15 @@
"description": "(Optional) if set to true, response will contain input and document level statistics.",
"type": "boolean"
},
{
"name": "stringIndexType",
"in": "query",
"description": "(Optional) This value indicates the index type for which the offsets have to be returned.",
"type": "string",
"enum" : [ "textelement_v8", "unicodecodepoint", "utf16codeunit" ],
"default" : "textelement_v8",
"required": false
},
{
"name": "domain",
"in": "query",
Expand All @@ -141,10 +165,16 @@
"$ref": "#/definitions/EntitiesResult"
}
},
"default": {
"description": "Error Response",
"400": {
"description": "Bad Request.",
"schema": {
"$ref": "#/definitions/TextAnalyticsError"
"$ref": "#/definitions/ErrorResponse"
}
},
"500": {
"description": "Internal error response",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -182,6 +212,15 @@
"description": "(Optional) if set to true, response will contain input and document level statistics.",
"type": "boolean"
},
{
"name": "stringIndexType",
"in": "query",
"description": "(Optional) This value indicates the index type for which the offsets have to be returned.",
"type": "string",
"enum" : [ "textelement_v8", "unicodecodepoint", "utf16codeunit" ],
"default" : "textelement_v8",
"required": false
},
{
"in": "body",
"name": "input",
Expand All @@ -199,10 +238,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"
}
}
},
Expand Down Expand Up @@ -257,10 +302,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"
}
}
},
Expand Down Expand Up @@ -315,10 +366,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"
}
}
},
Expand Down Expand Up @@ -356,6 +413,15 @@
"description": "(Optional) if set to true, response will contain input and document level statistics.",
"type": "boolean"
},
{
"name": "stringIndexType",
"in": "query",
"description": "(Optional) This value indicates the index type for which the offsets have to be returned.",
"type": "string",
"enum" : [ "textelement_v8", "unicodecodepoint", "utf16codeunit" ],
"default" : "textelement_v8",
"required": false
},
{
"name": "opinionMining",
"in": "query",
Expand All @@ -379,10 +445,16 @@
"$ref": "#/definitions/SentimentResponse"
}
},
"default": {
"description": "Error Response",
"400": {
"description": "Bad Request.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"500": {
"description": "Internal error response",
"schema": {
"$ref": "#/definitions/TextAnalyticsError"
"$ref": "#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -452,6 +524,19 @@
}
}
},
"ErrorResponse": {
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"description": "Document Error.",
"$ref": "#/definitions/TextAnalyticsError"
}
}
},
"TextAnalyticsError": {
"type": "object",
"required": [
Expand Down
Loading