mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 00:23:49 +00:00
docs: Rewrap to avoid line breaks in inline code spans.
This works around https://github.com/prettier/prettier/issues/11372.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 6145fdf678)
This commit is contained in:
committed by
Tim Abbott
parent
2e8d8ca044
commit
5ae8fe292d
@@ -183,11 +183,10 @@ REQ also helps us with request variable validation. For example:
|
||||
as JSON, and pass it into the function as the `msg_ids` Python
|
||||
keyword argument.
|
||||
|
||||
* `streams_raw = REQ("subscriptions",
|
||||
json_validator=check_list(check_string))` will check that the
|
||||
"subscriptions" HTTP parameter is a list of strings, marshalled as
|
||||
JSON, and pass it into the function with the Python keyword argument
|
||||
`streams_raw`.
|
||||
* `streams_raw = REQ("subscriptions", json_validator=check_list(check_string))`
|
||||
will check that the "subscriptions" HTTP parameter is a list of
|
||||
strings, marshalled as JSON, and pass it into the function with the
|
||||
Python keyword argument `streams_raw`.
|
||||
|
||||
* `message_id=REQ(converter=to_non_negative_int)` will check that the
|
||||
`message_id` HTTP parameter is a string containing a non-negative
|
||||
|
||||
Reference in New Issue
Block a user