diff --git a/internal/oapispec/openapi3_test.go b/internal/oapispec/openapi3_test.go index dac5096aac..a83f454143 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) {