Skip to content

Commit 53240eb

Browse files
authored
[Language] Remove non-GA DocumentDetectedLanguage object (#23805)
* Remove DocumentDetectedLanguage object * apply the same changes to dev folder
1 parent 7288f39 commit 53240eb

File tree

2 files changed

+2
-42
lines changed

2 files changed

+2
-42
lines changed

dev/cognitiveservices/data-plane/Language/analyzetext.json

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,7 +2076,7 @@
20762076
"type": "array",
20772077
"description": "Response by document",
20782078
"items": {
2079-
"$ref": "#/definitions/ExtractedSummaryDocumentResultWithDetectedLanguage"
2079+
"$ref": "#/definitions/ExtractedSummaryDocumentResult"
20802080
}
20812081
}
20822082
},
@@ -2114,17 +2114,6 @@
21142114
]
21152115
}
21162116
},
2117-
"ExtractedSummaryDocumentResultWithDetectedLanguage": {
2118-
"type": "object",
2119-
"allOf": [
2120-
{
2121-
"$ref": "#/definitions/ExtractedSummaryDocumentResult"
2122-
},
2123-
{
2124-
"$ref": "#/definitions/DocumentDetectedLanguage"
2125-
}
2126-
]
2127-
},
21282117
"ExtractedSummaryDocumentResult": {
21292118
"type": "object",
21302119
"properties": {
@@ -2660,15 +2649,6 @@
26602649
}
26612650
}
26622651
},
2663-
"DocumentDetectedLanguage": {
2664-
"type": "object",
2665-
"properties": {
2666-
"detectedLanguage": {
2667-
"$ref": "#/definitions/DetectedLanguage",
2668-
"description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document."
2669-
}
2670-
}
2671-
},
26722652
"DocumentWarning": {
26732653
"type": "object",
26742654
"required": [

specification/cognitiveservices/data-plane/Language/stable/2023-04-01/analyzetext.json

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,7 +2076,7 @@
20762076
"type": "array",
20772077
"description": "Response by document",
20782078
"items": {
2079-
"$ref": "#/definitions/ExtractedSummaryDocumentResultWithDetectedLanguage"
2079+
"$ref": "#/definitions/ExtractedSummaryDocumentResult"
20802080
}
20812081
}
20822082
},
@@ -2114,17 +2114,6 @@
21142114
]
21152115
}
21162116
},
2117-
"ExtractedSummaryDocumentResultWithDetectedLanguage": {
2118-
"type": "object",
2119-
"allOf": [
2120-
{
2121-
"$ref": "#/definitions/ExtractedSummaryDocumentResult"
2122-
},
2123-
{
2124-
"$ref": "#/definitions/DocumentDetectedLanguage"
2125-
}
2126-
]
2127-
},
21282117
"ExtractedSummaryDocumentResult": {
21292118
"type": "object",
21302119
"properties": {
@@ -2660,15 +2649,6 @@
26602649
}
26612650
}
26622651
},
2663-
"DocumentDetectedLanguage": {
2664-
"type": "object",
2665-
"properties": {
2666-
"detectedLanguage": {
2667-
"$ref": "#/definitions/DetectedLanguage",
2668-
"description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document."
2669-
}
2670-
}
2671-
},
26722652
"DocumentWarning": {
26732653
"type": "object",
26742654
"required": [

0 commit comments

Comments
 (0)