Skip to content

Commit

Permalink
Merge pull request Azure#4 from tasharm-0412/tasharm/addWarnings
Browse files Browse the repository at this point in the history
Updated the warnings response for sentiment
  • Loading branch information
laramume authored Mar 6, 2020
2 parents 9a28376 + 24a8609 commit c5091dc
Showing 1 changed file with 29 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,29 @@
}
}
},
"TextAnalyticsWarning": {
"type": "object",
"required": [ "code", "message" ],
"properties": {
"code": {
"type": "string",
"enum": [ "TooManyLongTokensInDocument" ],
"x-ms-enum": {
"name": "WarningCodeValue",
"modelAsString": false
},
"description": "Error code."
},
"message": {
"type": "string",
"description": "Warning message."
},
"targetRef": {
"type": "string",
"description": "The JSON pointer indicating the linked object."
}
}
},
"InnerError": {
"type": "object",
"required": [ "code", "message" ],
Expand Down Expand Up @@ -526,7 +549,7 @@
"type": "array",
"description": "Warnings encountered while processing document.",
"items": {
"$ref": "#/definitions/TextAnalyticsError"
"$ref": "#/definitions/TextAnalyticsWarning"
}
}
}
Expand Down Expand Up @@ -596,7 +619,7 @@
},
"SentenceSentiment": {
"type": "object",
"required": [ "sentiment", "sentenceScores", "offset", "length", "warnings" ],
"required": [ "sentiment", "sentenceScores", "offset", "length" ],
"properties": {
"sentiment": {
"type": "string",
Expand All @@ -620,13 +643,6 @@
"type": "integer",
"format": "int32",
"description": "The length of the sentence by Unicode standard."
},
"warnings": {
"type": "array",
"description": "Warnings encountered while processing sentence.",
"items": {
"$ref": "#/definitions/TextAnalyticsError"
}
}
}
},
Expand Down Expand Up @@ -676,7 +692,7 @@
"type": "array",
"description": "Warnings encountered while processing document.",
"items": {
"$ref": "#/definitions/TextAnalyticsError"
"$ref": "#/definitions/TextAnalyticsWarning"
}
},
"statistics": {
Expand Down Expand Up @@ -764,7 +780,7 @@
"type": "array",
"description": "Warnings encountered while processing document.",
"items": {
"$ref": "#/definitions/TextAnalyticsError"
"$ref": "#/definitions/TextAnalyticsWarning"
}
},
"statistics": {
Expand Down Expand Up @@ -877,7 +893,7 @@
"type": "array",
"description": "Warnings encountered while processing document.",
"items": {
"$ref": "#/definitions/TextAnalyticsError"
"$ref": "#/definitions/TextAnalyticsWarning"
}
},
"statistics": {
Expand Down Expand Up @@ -960,7 +976,7 @@
"type": "array",
"description": "Warnings encountered while processing document.",
"items": {
"$ref": "#/definitions/TextAnalyticsError"
"$ref": "#/definitions/TextAnalyticsWarning"
}
},
"statistics": {
Expand Down

0 comments on commit c5091dc

Please sign in to comment.