Skip to content

Commit 78900fb

Browse files
wangyuantaoyuantao-wang
authored andcommitted
Fix summarization result definition name for document generation, fix api-version in samples (Azure#21378)
* name allOf * abs dev * api version * literal * pretty Co-authored-by: Yuantao Wang <yuantw@microsoft.com>
1 parent 8e15bef commit 78900fb

File tree

77 files changed

+137
-119
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+137
-119
lines changed

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

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,14 +2120,7 @@
21202120
"type": "array",
21212121
"description": "Response by document",
21222122
"items": {
2123-
"allOf": [
2124-
{
2125-
"$ref": "#/definitions/ExtractedSummaryDocumentResult"
2126-
},
2127-
{
2128-
"$ref": "#/definitions/DocumentDetectedLanguage"
2129-
}
2130-
]
2123+
"$ref": "#/definitions/ExtractedSummaryDocumentResultWithDetectedLanguage"
21312124
}
21322125
}
21332126
},
@@ -2165,6 +2158,17 @@
21652158
]
21662159
}
21672160
},
2161+
"ExtractedSummaryDocumentResultWithDetectedLanguage": {
2162+
"type": "object",
2163+
"allOf": [
2164+
{
2165+
"$ref": "#/definitions/ExtractedSummaryDocumentResult"
2166+
},
2167+
{
2168+
"$ref": "#/definitions/DocumentDetectedLanguage"
2169+
}
2170+
]
2171+
},
21682172
"ExtractedSummaryDocumentResult": {
21692173
"type": "object",
21702174
"properties": {
@@ -2963,21 +2967,26 @@
29632967
"type": "array",
29642968
"description": "Response by document",
29652969
"items": {
2966-
"allOf": [
2967-
{
2968-
"$ref": "#/definitions/AbstractiveSummaryDocumentResult"
2969-
},
2970-
{
2971-
"$ref": "#/definitions/DocumentDetectedLanguage"
2972-
}
2973-
]
2970+
"$ref": "#/definitions/AbstractiveSummaryDocumentResultWithDetectedLanguage"
29742971
}
29752972
}
29762973
},
29772974
"required": [
29782975
"documents"
29792976
]
29802977
},
2978+
"AbstractiveSummaryDocumentResultWithDetectedLanguage": {
2979+
"type": "object",
2980+
"description": "An object representing the summarization result of a single document with detected language.",
2981+
"allOf": [
2982+
{
2983+
"$ref": "#/definitions/AbstractiveSummaryDocumentResult"
2984+
},
2985+
{
2986+
"$ref": "#/definitions/DocumentDetectedLanguage"
2987+
}
2988+
]
2989+
},
29812990
"AbstractiveSummarizationResult": {
29822991
"type": "object",
29832992
"description": "An object representing the pre-build summarization results of each document.",

specification/cognitiveservices/data-plane/Language/preview/2022-10-01-preview/analyzetext.json

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,14 +2120,7 @@
21202120
"type": "array",
21212121
"description": "Response by document",
21222122
"items": {
2123-
"allOf": [
2124-
{
2125-
"$ref": "#/definitions/ExtractedSummaryDocumentResult"
2126-
},
2127-
{
2128-
"$ref": "#/definitions/DocumentDetectedLanguage"
2129-
}
2130-
]
2123+
"$ref": "#/definitions/ExtractedSummaryDocumentResultWithDetectedLanguage"
21312124
}
21322125
}
21332126
},
@@ -2165,6 +2158,17 @@
21652158
]
21662159
}
21672160
},
2161+
"ExtractedSummaryDocumentResultWithDetectedLanguage": {
2162+
"type": "object",
2163+
"allOf": [
2164+
{
2165+
"$ref": "#/definitions/ExtractedSummaryDocumentResult"
2166+
},
2167+
{
2168+
"$ref": "#/definitions/DocumentDetectedLanguage"
2169+
}
2170+
]
2171+
},
21682172
"ExtractedSummaryDocumentResult": {
21692173
"type": "object",
21702174
"properties": {
@@ -2963,14 +2967,7 @@
29632967
"type": "array",
29642968
"description": "Response by document",
29652969
"items": {
2966-
"allOf": [
2967-
{
2968-
"$ref": "#/definitions/AbstractiveSummaryDocumentResult"
2969-
},
2970-
{
2971-
"$ref": "#/definitions/DocumentDetectedLanguage"
2972-
}
2973-
]
2970+
"$ref": "#/definitions/AbstractiveSummaryDocumentResultWithDetectedLanguage"
29742971
}
29752972
}
29762973
},
@@ -2993,6 +2990,18 @@
29932990
"documents"
29942991
]
29952992
},
2993+
"AbstractiveSummaryDocumentResultWithDetectedLanguage": {
2994+
"type": "object",
2995+
"description": "An object representing the summarization result of a single document with detected language.",
2996+
"allOf": [
2997+
{
2998+
"$ref": "#/definitions/AbstractiveSummaryDocumentResult"
2999+
},
3000+
{
3001+
"$ref": "#/definitions/DocumentDetectedLanguage"
3002+
}
3003+
]
3004+
},
29963005
"AbstractiveSummaryDocumentResult": {
29973006
"type": "object",
29983007
"description": "An object representing the summarization result of a single document.",

specification/cognitiveservices/data-plane/Language/preview/2022-10-01-preview/examples/analyzeconversations-authoring/SuccessfulAssignDeploymentResources.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"responses": {
2323
"202": {
2424
"headers": {
25-
"operation-location": "{Endpoint}/language/authoring/analyze-conversations/projects/EmailApp/resources/assign/jobs/66fa9a67-a561-42f1-8a13-f3a879b1a324_637858368000000000?api-version={api-version}"
25+
"operation-location": "{Endpoint}/language/authoring/analyze-conversations/projects/EmailApp/resources/assign/jobs/66fa9a67-a561-42f1-8a13-f3a879b1a324_637858368000000000?api-version=2022-10-01-preview"
2626
}
2727
}
2828
}

specification/cognitiveservices/data-plane/Language/preview/2022-10-01-preview/examples/analyzeconversations-authoring/SuccessfulCancelTrainingJob.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"responses": {
1010
"202": {
1111
"headers": {
12-
"operation-location": "{Endpoint}/language/authoring/analyze-conversations/projects/EmailApp/train/jobs/4d37982f-fded-4c2c-afe3-15953b5919b6_637858368000000000?api-version={api-version}"
12+
"operation-location": "{Endpoint}/language/authoring/analyze-conversations/projects/EmailApp/train/jobs/4d37982f-fded-4c2c-afe3-15953b5919b6_637858368000000000?api-version=2022-10-01-preview"
1313
}
1414
}
1515
}

specification/cognitiveservices/data-plane/Language/preview/2022-10-01-preview/examples/analyzeconversations-authoring/SuccessfulDeleteDeployment.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"responses": {
1010
"202": {
1111
"headers": {
12-
"operation-location": "{Endpoint}/language/authoring/analyze-conversations/projects/EmailApp/deployments/staging/jobs/61ebb7ef-a207-40d2-82b9-5285440ae579_637858368000000000?api-version={api-version}"
12+
"operation-location": "{Endpoint}/language/authoring/analyze-conversations/projects/EmailApp/deployments/staging/jobs/61ebb7ef-a207-40d2-82b9-5285440ae579_637858368000000000?api-version=2022-10-01-preview"
1313
}
1414
}
1515
}

specification/cognitiveservices/data-plane/Language/preview/2022-10-01-preview/examples/analyzeconversations-authoring/SuccessfulDeleteDeploymentFromResources.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"responses": {
1515
"202": {
1616
"headers": {
17-
"operation-location": "{Endpoint}/language/authoring/analyze-conversations/projects/EmailApp/deployments/staging/delete-from-resources/jobs/61ebb7ef-a207-40d2-82b9-5285440ae579_637858368000000000?api-version={api-version}"
17+
"operation-location": "{Endpoint}/language/authoring/analyze-conversations/projects/EmailApp/deployments/staging/delete-from-resources/jobs/61ebb7ef-a207-40d2-82b9-5285440ae579_637858368000000000?api-version=2022-10-01-preview"
1818
}
1919
}
2020
}

specification/cognitiveservices/data-plane/Language/preview/2022-10-01-preview/examples/analyzeconversations-authoring/SuccessfulDeleteProject.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"responses": {
99
"202": {
1010
"headers": {
11-
"operation-location": "{Endpoint}/language/authoring/analyze-conversations/projects/global/deletion-jobs/129d3182-625d-496c-bcf9-43686e85160b_637858368000000000?api-version={api-version}"
11+
"operation-location": "{Endpoint}/language/authoring/analyze-conversations/projects/global/deletion-jobs/129d3182-625d-496c-bcf9-43686e85160b_637858368000000000?api-version=2022-10-01-preview"
1212
}
1313
}
1414
}

specification/cognitiveservices/data-plane/Language/preview/2022-10-01-preview/examples/analyzeconversations-authoring/SuccessfulDeployProject.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"responses": {
1717
"202": {
1818
"headers": {
19-
"operation-location": "{Endpoint}/language/authoring/analyze-conversations/projects/EmailApp/deployments/production/jobs/66fa9a67-a561-42f1-8a13-f3a879b1a324_637858368000000000?api-version={api-version}"
19+
"operation-location": "{Endpoint}/language/authoring/analyze-conversations/projects/EmailApp/deployments/production/jobs/66fa9a67-a561-42f1-8a13-f3a879b1a324_637858368000000000?api-version=2022-10-01-preview"
2020
}
2121
}
2222
}

specification/cognitiveservices/data-plane/Language/preview/2022-10-01-preview/examples/analyzeconversations-authoring/SuccessfulExportProject.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"responses": {
1010
"202": {
1111
"headers": {
12-
"operation-location": "{Endpoint}/language/authoring/analyze-conversations/projects/EmailApp/export/jobs/4d37982f-fded-4c2c-afe3-15953b5919b6_637858368000000000?api-version={api-version}"
12+
"operation-location": "{Endpoint}/language/authoring/analyze-conversations/projects/EmailApp/export/jobs/4d37982f-fded-4c2c-afe3-15953b5919b6_637858368000000000?api-version=2022-10-01-preview"
1313
}
1414
}
1515
}

specification/cognitiveservices/data-plane/Language/preview/2022-10-01-preview/examples/analyzeconversations-authoring/SuccessfulGetExportStatus.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"200": {
1111
"headers": {},
1212
"body": {
13-
"resultUrl": "{Endpoint}/language/authoring/analyze-conversations/projects/EmailApp/export/jobs/c4946bfa-4fbf-493b-bfcf-2d232eb9de69_637858368000000000/result?api-version={api-version}",
13+
"resultUrl": "{Endpoint}/language/authoring/analyze-conversations/projects/EmailApp/export/jobs/c4946bfa-4fbf-493b-bfcf-2d232eb9de69_637858368000000000/result?api-version=2022-10-01-preview",
1414
"jobId": "c4946bfa-4fbf-493b-bfcf-2d232eb9de69_637858368000000000",
1515
"createdDateTime": "2022-04-18T15:23:07Z",
1616
"lastUpdatedDateTime": "2022-04-18T15:23:08Z",

0 commit comments

Comments
 (0)