Skip to content
Merged
Show file tree
Hide file tree
Changes from 21 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 @@ -77,10 +77,22 @@
"$ref": "#/definitions/EntitiesResult"
}
},
"400": {
"description": "Bad Request.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"500": {
"description": "Internal error response",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"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",
"schema": {
"$ref": "#/definitions/TextAnalyticsError"
"$ref": "#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -135,10 +147,22 @@
"$ref": "#/definitions/EntitiesResult"
}
},
"400": {
"description": "Bad Request.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"500": {
"description": "Internal error response",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"default": {
"description": "Error Response",
"schema": {
"$ref": "#/definitions/TextAnalyticsError"
"$ref": "#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -193,10 +217,22 @@
"$ref": "#/definitions/EntityLinkingResult"
}
},
"400": {
"description": "Bad Request.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"500": {
"description": "Internal error response",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"default": {
"description": "Error Response",
"schema": {
"$ref": "#/definitions/TextAnalyticsError"
"$ref": "#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -251,10 +287,22 @@
"$ref": "#/definitions/KeyPhraseResult"
}
},
"400": {
"description": "Bad Request.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"500": {
"description": "Internal error response",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"default": {
"description": "Error Response",
"schema": {
"$ref": "#/definitions/TextAnalyticsError"
"$ref": "#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -309,10 +357,22 @@
"$ref": "#/definitions/LanguageResult"
}
},
"400": {
"description": "Bad Request.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"500": {
"description": "Internal error response",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"default": {
"description": "Error Response",
"schema": {
"$ref": "#/definitions/TextAnalyticsError"
"$ref": "#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -367,10 +427,22 @@
"$ref": "#/definitions/SentimentResponse"
}
},
"400": {
"description": "Bad Request.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"500": {
"description": "Internal error response",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"default": {
"description": "Error Response",
"schema": {
"$ref": "#/definitions/TextAnalyticsError"
"$ref": "#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -440,6 +512,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 @@ -83,6 +83,28 @@
"errors": [],
"modelVersion": "2019-10-01"
}
},
"400": {
"headers": {},
"body": {
"error": {
"code": "invalidRequest",
"message": "Invalid Request.",
"innerError": {
"code": "MissingInputRecords",
"message": "Missing input records."
}
}
}
},
"500": {
"headers": {},
"body": {
"error": {
"code": "internalServerError",
"message": "Internal Server Error"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,28 @@
"errors": [],
"modelVersion": "2019-10-01"
}
},
"400": {
"headers": {},
"body": {
"error": {
"code": "invalidRequest",
"message": "Invalid Request.",
"innerError": {
"code": "MissingInputRecords",
"message": "Missing input records."
}
}
}
},
"500": {
"headers": {},
"body": {
"error": {
"code": "internalServerError",
"message": "Internal Server Error"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,28 @@
"errors": [],
"modelVersion": "2019-10-01"
}
},
"400": {
"headers": {},
"body": {
"error": {
"code": "invalidRequest",
"message": "Invalid Request.",
"innerError": {
"code": "MissingInputRecords",
"message": "Missing input records."
}
}
}
},
"500": {
"headers": {},
"body": {
"error": {
"code": "internalServerError",
"message": "Internal Server Error"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,28 @@
"errors": [],
"modelVersion": "2019-10-01"
}
},
"400": {
"headers": {},
"body": {
"error": {
"code": "invalidRequest",
"message": "Invalid Request.",
"innerError": {
"code": "MissingInputRecords",
"message": "Missing input records."
}
}
}
},
"500": {
"headers": {},
"body": {
"error": {
"code": "internalServerError",
"message": "Internal Server Error"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,28 @@
"errors": [],
"modelVersion": "2019-10-01"
}
},
"400": {
"headers": {},
"body": {
"error": {
"code": "invalidRequest",
"message": "Invalid Request.",
"innerError": {
"code": "MissingInputRecords",
"message": "Missing input records."
}
}
}
},
"500": {
"headers": {},
"body": {
"error": {
"code": "internalServerError",
"message": "Internal Server Error"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,28 @@
"errors": [],
"modelVersion": "2019-10-01"
}
},
"400": {
"headers": {},
"body": {
"error": {
"code": "invalidRequest",
"message": "Invalid Request.",
"innerError": {
"code": "MissingInputRecords",
"message": "Missing input records."
}
}
}
},
"500": {
"headers": {},
"body": {
"error": {
"code": "internalServerError",
"message": "Internal Server Error"
}
}
}
}
}
Loading