api: Fix encoding of strings in display settings endpoint.

* Remove unnecessary json validator for string validator.
* Update frontend to pass right validator.
* Update zulip.yaml to pass right parameter for curl request
  in openapi.
* Update python_examples to pass right paramater.

Fixes part of #18035.
This commit is contained in:
Gaurav Pandey
2021-05-08 21:06:47 +05:30
committed by Tim Abbott
parent 544bbd5398
commit 9abe1cafbe
5 changed files with 12 additions and 12 deletions

View File

@@ -1131,7 +1131,7 @@ def update_display_settings(client: Client) -> None:
# Change emoji set used for display to Google modern.
request = {
"left_side_userlist": True,
"emojiset": '"google"',
"emojiset": "google",
}
result = client.call_endpoint("settings/display", method="PATCH", request=request)
# {code_example|end}