mirror of https://github.com/zulip/zulip.git
openapi: Fix minor assertion in curl examples.
Now, include and exclude configuration are fetched from openapi data, and only one type can be encoded for every example. This removes the need for the assertion to test if both include and exclude are present since at a time, only one can be present.
This commit is contained in:
parent
a2be9a0e2d
commit
6bd11285c1
|
@ -259,8 +259,6 @@ def generate_curl_example(
|
|||
exclude: Optional[List[str]] = None,
|
||||
include: Optional[List[str]] = None,
|
||||
) -> List[str]:
|
||||
if exclude is not None and include is not None:
|
||||
raise AssertionError("exclude and include cannot be set at the same time.")
|
||||
|
||||
lines = ["```curl"]
|
||||
operation = endpoint + ":" + method.lower()
|
||||
|
|
Loading…
Reference in New Issue