mirror of https://github.com/zulip/zulip.git
openapi: Convert deprecated Spec.create to Spec.from_dict.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
7e811ea1bd
commit
85681546ce
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue