From 46828497f58bbc4675efa78a0bfbe0e3c2d85ace Mon Sep 17 00:00:00 2001 From: Andrew Richardson Date: Thu, 2 Dec 2021 14:26:42 -0500 Subject: [PATCH] Address coverage drop from #337 Coverage for JSONInputMask was inadvertently lost. Signed-off-by: Andrew Richardson --- internal/oapispec/openapi3_test.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/internal/oapispec/openapi3_test.go b/internal/oapispec/openapi3_test.go index dac5096aa..a83f45414 100644 --- a/internal/oapispec/openapi3_test.go +++ b/internal/oapispec/openapi3_test.go @@ -50,7 +50,7 @@ var testRoutes = []*Route{ FilterFactory: nil, Description: i18n.MsgTBD, JSONInputValue: func() interface{} { return &fftypes.MessageInOut{} }, - JSONInputMask: []string{"id"}, + JSONInputMask: nil, JSONOutputValue: func() interface{} { return &fftypes.Batch{} }, JSONOutputCodes: []int{http.StatusOK}, }, @@ -108,6 +108,19 @@ var testRoutes = []*Route{ JSONOutputValue: func() interface{} { return nil }, JSONOutputCodes: []int{http.StatusNoContent}, }, + { + Name: "op5", + Path: "example2", + Method: http.MethodPost, + PathParams: nil, + QueryParams: nil, + FilterFactory: nil, + Description: i18n.MsgTBD, + JSONInputValue: func() interface{} { return &fftypes.Data{} }, + JSONInputMask: []string{"id"}, + JSONOutputValue: func() interface{} { return &fftypes.Data{} }, + JSONOutputCodes: []int{http.StatusOK}, + }, } func TestOpenAPI3SwaggerGen(t *testing.T) {