Skip to content

Commit fce0b25

Browse files
[Language - QA authoring] correct source to required param for update sources (#22065)
* correct source to required param for update sources * fix validation errors while we're here
1 parent 61a8b1a commit fce0b25

File tree

18 files changed

+97
-29
lines changed

18 files changed

+97
-29
lines changed

dev/cognitiveservices/data-plane/Language/examples/questionanswering/authoring/SuccessfulDeleteProject.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"projectName": "proj1"
88
},
99
"responses": {
10-
"202": {}
10+
"202": {
11+
"description": "A successful call results with an Operation-Location header used to check the status of the analysis job.",
12+
"headers": {
13+
"Operation-Location": "https://<resource-endpoint>/language/authoring/query-knowledgebases/projects/deletion-jobs/job1?api-version=2023-05-01"
14+
}
15+
}
1116
}
1217
}

dev/cognitiveservices/data-plane/Language/examples/questionanswering/authoring/SuccessfulGetSources.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@
1515
"displayName": "source1",
1616
"sourceUri": "https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/overview/overview",
1717
"sourceKind": "url",
18-
"lastUpdatedDateTime": "2021-05-01T15:13:22Z"
18+
"lastUpdatedDateTime": "2021-05-01T15:13:22Z",
19+
"source": "https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/overview/overview"
1920
},
2021
{
2122
"displayName": "source2",
2223
"sourceUri": "https://download.microsoft.com/download/2/9/B/29B20383-302C-4517-A006-B0186F04BE28/surface-pro-4-user-guide-EN.pdf",
2324
"sourceKind": "file",
2425
"contentStructureKind": "unstructured",
25-
"lastUpdatedDateTime": "2021-05-01T15:13:22Z"
26+
"lastUpdatedDateTime": "2021-05-01T15:13:22Z",
27+
"source": "surface-guide.pdf"
2628
}
2729
]
2830
}

dev/cognitiveservices/data-plane/Language/examples/questionanswering/authoring/SuccessfulUpdateSources.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"value": {
1212
"displayName": "source3",
1313
"sourceUri": "https://docs.microsoft.com/en-us/azure/cognitive-services/cognitive-services-support-options?context=/azure/cognitive-services/qnamaker/context/context",
14-
"sourceKind": "url"
14+
"sourceKind": "url",
15+
"source": "https://docs.microsoft.com/en-us/azure/cognitive-services/cognitive-services-support-options?context=/azure/cognitive-services/qnamaker/context/context"
1516
}
1617
},
1718
{
@@ -20,15 +21,17 @@
2021
"displayName": "source1",
2122
"sourceUri": "https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/overview/overview",
2223
"sourceKind": "url",
23-
"refresh": true
24+
"refresh": true,
25+
"source": "https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/overview/overview"
2426
}
2527
},
2628
{
2729
"op": "delete",
2830
"value": {
2931
"displayName": "source2",
3032
"sourceUri": "https://download.microsoft.com/download/2/9/B/29B20383-302C-4517-A006-B0186F04BE28/surface-pro-4-user-guide-EN.pdf",
31-
"sourceKind": "file"
33+
"sourceKind": "file",
34+
"source": "surface-guide.pdf"
3235
}
3336
}
3437
]

dev/cognitiveservices/data-plane/Language/questionanswering-authoring.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,8 @@
16501650
"additionalProperties": false,
16511651
"required": [
16521652
"sourceUri",
1653-
"sourceKind"
1653+
"sourceKind",
1654+
"source"
16541655
],
16551656
"properties": {
16561657
"displayName": {

specification/cognitiveservices/data-plane/Language/preview/2022-07-01-preview/examples/questionanswering/authoring/SuccessfulDeleteProject.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"projectName": "proj1"
88
},
99
"responses": {
10-
"202": {}
10+
"202": {
11+
"description": "A successful call results with an Operation-Location header used to check the status of the analysis job.",
12+
"headers": {
13+
"Operation-Location": "https://<resource-endpoint>/language/authoring/query-knowledgebases/projects/deletion-jobs/job1?api-version=2022-07-01-preview"
14+
}
15+
}
1116
}
1217
}

specification/cognitiveservices/data-plane/Language/preview/2022-07-01-preview/examples/questionanswering/authoring/SuccessfulGetSources.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@
1515
"displayName": "source1",
1616
"sourceUri": "https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/overview/overview",
1717
"sourceKind": "url",
18-
"lastUpdatedDateTime": "2021-05-01T15:13:22Z"
18+
"lastUpdatedDateTime": "2021-05-01T15:13:22Z",
19+
"source": "https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/overview/overview"
1920
},
2021
{
2122
"displayName": "source2",
2223
"sourceUri": "https://download.microsoft.com/download/2/9/B/29B20383-302C-4517-A006-B0186F04BE28/surface-pro-4-user-guide-EN.pdf",
2324
"sourceKind": "file",
2425
"contentStructureKind": "unstructured",
25-
"lastUpdatedDateTime": "2021-05-01T15:13:22Z"
26+
"lastUpdatedDateTime": "2021-05-01T15:13:22Z",
27+
"source": "surface-guide.pdf"
2628
}
2729
]
2830
}

specification/cognitiveservices/data-plane/Language/preview/2022-07-01-preview/examples/questionanswering/authoring/SuccessfulProjectSubmitExportJob.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
}
1414
},
1515
"responses": {
16+
"200": {
17+
"headers": {},
18+
"body": {
19+
"errors": [],
20+
"createdDateTime": "2021-05-01T17:21:14Z",
21+
"expirationDateTime": "2021-05-01T17:21:14Z",
22+
"jobId": "635c2741-15c4-4c2c-9f78-bfd30b6b2a4a",
23+
"lastUpdatedDateTime": "2021-05-01T17:21:14Z",
24+
"status": "succeeded",
25+
"resultUrl": "https://<resource-endpoint>/language/authoring/query-knowledgebases/projects/proj1/export/jobs/job1/result?api-version=2022-07-01-preview"
26+
}
27+
},
1628
"202": {
1729
"description": "A successful call results with an Operation-Location header used to check the status of the analysis job.",
1830
"headers": {

specification/cognitiveservices/data-plane/Language/preview/2022-07-01-preview/examples/questionanswering/authoring/SuccessfulUpdateSources.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"value": {
1212
"displayName": "source3",
1313
"sourceUri": "https://docs.microsoft.com/en-us/azure/cognitive-services/cognitive-services-support-options?context=/azure/cognitive-services/qnamaker/context/context",
14-
"sourceKind": "url"
14+
"sourceKind": "url",
15+
"source": "https://docs.microsoft.com/en-us/azure/cognitive-services/cognitive-services-support-options?context=/azure/cognitive-services/qnamaker/context/context"
1516
}
1617
},
1718
{
@@ -20,15 +21,17 @@
2021
"displayName": "source1",
2122
"sourceUri": "https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/overview/overview",
2223
"sourceKind": "url",
23-
"refresh": true
24+
"refresh": true,
25+
"source": "https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/overview/overview"
2426
}
2527
},
2628
{
2729
"op": "delete",
2830
"value": {
2931
"displayName": "source2",
3032
"sourceUri": "https://download.microsoft.com/download/2/9/B/29B20383-302C-4517-A006-B0186F04BE28/surface-pro-4-user-guide-EN.pdf",
31-
"sourceKind": "file"
33+
"sourceKind": "file",
34+
"source": "surface-guide.pdf"
3235
}
3336
}
3437
]

specification/cognitiveservices/data-plane/Language/preview/2022-07-01-preview/questionanswering-authoring.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,8 @@
16491649
"additionalProperties": false,
16501650
"required": [
16511651
"sourceUri",
1652-
"sourceKind"
1652+
"sourceKind",
1653+
"source"
16531654
],
16541655
"properties": {
16551656
"displayName": {

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"projectName": "proj1"
88
},
99
"responses": {
10-
"202": {}
10+
"202": {
11+
"description": "A successful call results with an Operation-Location header used to check the status of the analysis job.",
12+
"headers": {
13+
"Operation-Location": "https://<resource-endpoint>/language/authoring/query-knowledgebases/projects/deletion-jobs/job1?api-version=2022-10-01-preview"
14+
}
15+
}
1116
}
1217
}

0 commit comments

Comments
 (0)