[Language] Remove non-GA DocumentDetectedLanguage object (#23805)

* Remove DocumentDetectedLanguage object

* apply the same changes to dev folder
This commit is contained in:
Shawn Fang 2023-05-05 15:03:11 -07:00 коммит произвёл GitHub
Родитель 7288f39254
Коммит 53240ebc58
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 2 добавлений и 42 удалений

Просмотреть файл

@ -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": [

Просмотреть файл

@ -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": [