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: Convert deprecated Spec.create to Spec.from_dict.

Anders Kaseorg85681546ce50
diff --git a/zerver/openapi/openapi.py b/zerver/openapi/openapi.py
index 91bad649e23..4ef47289928 100644
--- a/zerver/openapi/openapi.py
+++ b/zerver/openapi/openapi.py
@@ -103,7 +103,7 @@ class OpenAPISpec:
openapi = yaml.load(f, Loader=yaml.CSafeLoader)
- spec = Spec.create(openapi)
+ spec = Spec.from_dict(openapi)
self._spec = spec
self._openapi = naively_merge_allOf_dict(JsonRef.replace_refs(openapi))
self.create_endpoints_dict()