Skip to content

Commit

Permalink
add compat for openapi-core 0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Jun 8, 2022
1 parent 0d9d027 commit b747ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jupyterlab_server/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

def get_openapi_spec():
"""Get the OpenAPI spec object."""
from openapi_core import create_spec
from openapi_core import OpenAPISpec as Spec

openapi_spec_dict = get_openapi_spec_dict()
return create_spec(openapi_spec_dict)
return Spec.create(openapi_spec_dict)


def get_openapi_spec_dict():
Expand Down

0 comments on commit b747ad0

Please sign in to comment.