Skip to content

Commit

Permalink
fix: tuple schema and websocket connection (#4709)
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed May 6, 2024
1 parent 75acab0 commit e2c21b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/_bentoml_impl/server/app.py
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/bentoml/_internal/service/openapi/specification.py
Expand Up @@ -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
Expand Down

0 comments on commit e2c21b8

Please sign in to comment.