Skip to content

Commit

Permalink
Update QnAMaker.json - response code correction (#10828)
Browse files Browse the repository at this point in the history
* Update QnAMaker.json

Correct PATCH EndpointSettings response code from 200 to 204

* Update example response set endpoint

Update example response set endpoint

* Prettier validation fix

* required propery validation fix

* remove alternateQuestionClusters from example

* removed alternateQuestionClusters across the example

Need to add it as a whole Active learning swagger update

* ModelValidation fixed in example instead of spec - non breaking change
  • Loading branch information
sahithikkss-zz authored Sep 28, 2020
1 parent ab60861 commit 1aaf3c1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,8 @@
"application/json"
],
"responses": {
"200": {
"description": "Response with endpointSettings update status.",
"schema": {
"type": "string"
}
"204": {
"description": "HTTP 204 No Content."
},
"default": {
"description": "Error response.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"Ocp-Apim-Subscription-Key": "{API key}",
"kbId": "9d091697-fb8c-4ed5-9ac0-35bf8273bfff",
"replaceKb": {
"qnaList": [
"qnAList": [
{
"id": 0,
"answer": "You can change the default message if you use the QnAMakerDialog. See this for details: https://docs.botframework.com/en-us/azure-bot-service/templates/qnamaker/#navtitle",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
}
},
"responses": {
"200": {
"headers": {},
"body": "Successfully updated endpoint settings"
}
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@
"add": [],
"delete": []
},
"alternateQuestionClusters": {
"delete": []
},
"context": {
"isContextOnly": false,
"promptsToAdd": [
Expand All @@ -65,7 +62,6 @@
"How can I add prompts?"
],
"metadata": [],
"alternateQuestionClusters": [],
"context": {
"isContextOnly": false,
"prompts": []
Expand All @@ -84,7 +80,6 @@
"How can I delete delete prompts?"
],
"metadata": [],
"alternateQuestionClusters": [],
"context": {
"isContextOnly": false,
"prompts": []
Expand Down Expand Up @@ -126,9 +121,6 @@
}
]
},
"alternateQuestionClusters": {
"delete": []
},
"context": {
"isContextOnly": false,
"promptsToAdd": [
Expand Down

0 comments on commit 1aaf3c1

Please sign in to comment.