Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

openapi: Fix minor assertion in curl examples.

Suyash Vardhan Mathur6bd11285c1d1
diff --git a/zerver/openapi/markdown_extension.py b/zerver/openapi/markdown_extension.py
index 72548bdb7dc..4c191134edd 100644
--- a/zerver/openapi/markdown_extension.py
+++ b/zerver/openapi/markdown_extension.py
@@ -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()