From 53240ebc58b3c4e99de723194032064db1d97e63 Mon Sep 17 00:00:00 2001 From: Shawn Fang <45607042+mssfang@users.noreply.github.com> Date: Fri, 5 May 2023 15:03:11 -0700 Subject: [PATCH] [Language] Remove non-GA DocumentDetectedLanguage object (#23805) * Remove DocumentDetectedLanguage object * apply the same changes to dev folder --- .../data-plane/Language/analyzetext.json | 22 +------------------ .../stable/2023-04-01/analyzetext.json | 22 +------------------ 2 files changed, 2 insertions(+), 42 deletions(-) diff --git a/dev/cognitiveservices/data-plane/Language/analyzetext.json b/dev/cognitiveservices/data-plane/Language/analyzetext.json index 430b85f28f..528bd0ea4c 100644 --- a/dev/cognitiveservices/data-plane/Language/analyzetext.json +++ b/dev/cognitiveservices/data-plane/Language/analyzetext.json @@ -2076,7 +2076,7 @@ "type": "array", "description": "Response by document", "items": { - "$ref": "#/definitions/ExtractedSummaryDocumentResultWithDetectedLanguage" + "$ref": "#/definitions/ExtractedSummaryDocumentResult" } } }, @@ -2114,17 +2114,6 @@ ] } }, - "ExtractedSummaryDocumentResultWithDetectedLanguage": { - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ExtractedSummaryDocumentResult" - }, - { - "$ref": "#/definitions/DocumentDetectedLanguage" - } - ] - }, "ExtractedSummaryDocumentResult": { "type": "object", "properties": { @@ -2660,15 +2649,6 @@ } } }, - "DocumentDetectedLanguage": { - "type": "object", - "properties": { - "detectedLanguage": { - "$ref": "#/definitions/DetectedLanguage", - "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." - } - } - }, "DocumentWarning": { "type": "object", "required": [ diff --git a/specification/cognitiveservices/data-plane/Language/stable/2023-04-01/analyzetext.json b/specification/cognitiveservices/data-plane/Language/stable/2023-04-01/analyzetext.json index 430b85f28f..528bd0ea4c 100644 --- a/specification/cognitiveservices/data-plane/Language/stable/2023-04-01/analyzetext.json +++ b/specification/cognitiveservices/data-plane/Language/stable/2023-04-01/analyzetext.json @@ -2076,7 +2076,7 @@ "type": "array", "description": "Response by document", "items": { - "$ref": "#/definitions/ExtractedSummaryDocumentResultWithDetectedLanguage" + "$ref": "#/definitions/ExtractedSummaryDocumentResult" } } }, @@ -2114,17 +2114,6 @@ ] } }, - "ExtractedSummaryDocumentResultWithDetectedLanguage": { - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ExtractedSummaryDocumentResult" - }, - { - "$ref": "#/definitions/DocumentDetectedLanguage" - } - ] - }, "ExtractedSummaryDocumentResult": { "type": "object", "properties": { @@ -2660,15 +2649,6 @@ } } }, - "DocumentDetectedLanguage": { - "type": "object", - "properties": { - "detectedLanguage": { - "$ref": "#/definitions/DetectedLanguage", - "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." - } - } - }, "DocumentWarning": { "type": "object", "required": [