From bdee051c1e64dc9951341cfcb2d063bc2d691a96 Mon Sep 17 00:00:00 2001 From: Aaron Pham <29749331+aarnphm@users.noreply.github.com> Date: Thu, 21 Mar 2024 22:23:09 +0000 Subject: [PATCH] fix(openapi): remove invalid fields for operations parameter Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com> --- src/_bentoml_sdk/service/openapi.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/_bentoml_sdk/service/openapi.py b/src/_bentoml_sdk/service/openapi.py index 28b678a1507..54443c25e48 100644 --- a/src/_bentoml_sdk/service/openapi.py +++ b/src/_bentoml_sdk/service/openapi.py @@ -110,8 +110,6 @@ def join_path(prefix: str, path: str) -> str: }, }, "tags": [APP_TAG.name], - "consumes": [api.input_spec.mime_type()], - "produces": [api.output_spec.mime_type()], "x-bentoml-name": api.name, "description": api.doc or "", "requestBody": api.openapi_request(),