From edd62f3b4f544aa40b32a8bddd1faaf9b75632a5 Mon Sep 17 00:00:00 2001 From: John Guo Date: Fri, 8 Oct 2021 15:37:17 +0800 Subject: [PATCH] openapi --- protocol/goai/goai_path.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/goai/goai_path.go b/protocol/goai/goai_path.go index 35fc38282..d715406b3 100644 --- a/protocol/goai/goai_path.go +++ b/protocol/goai/goai_path.go @@ -239,7 +239,7 @@ func (oai *OpenApiV3) addPath(in addPathInput) error { case HttpMethodDelete: // DELETE operations cannot have a requestBody. - operation.RequestBody.Value = nil + operation.RequestBody = nil path.Delete = &operation case HttpMethodConnect: