diff --git a/src/_bentoml_impl/server/app.py b/src/_bentoml_impl/server/app.py index 34c833bb072..d1535523a70 100644 --- a/src/_bentoml_impl/server/app.py +++ b/src/_bentoml_impl/server/app.py @@ -51,7 +51,7 @@ async def __call__( ) -> None: from starlette.requests import Request - if scope["type"] not in ("http", "websocket"): + if scope["type"] not in ("http",): return await self.app(scope, receive, send) req = Request(scope, receive, send) diff --git a/src/bentoml/_internal/service/openapi/specification.py b/src/bentoml/_internal/service/openapi/specification.py index d0e815ff2ff..8cde914bdb5 100644 --- a/src/bentoml/_internal/service/openapi/specification.py +++ b/src/bentoml/_internal/service/openapi/specification.py @@ -96,6 +96,7 @@ class Schema: maxItems: t.Optional[int] = None minItems: t.Optional[int] = None uniqueItems: t.Optional[bool] = None + prefixItems: t.Optional[t.List[Schema]] = None maxProperties: t.Optional[int] = None minProperties: t.Optional[int] = None required: t.Optional[t.List[str]] = None