Skip to content

Commit 4b2f720

Browse files
committed
Address coverage drop from hyperledger#337
Coverage for JSONInputMask was inadvertently lost. Signed-off-by: Andrew Richardson <[email protected]>
1 parent 3c5fac1 commit 4b2f720

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

internal/oapispec/openapi3_test.go

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var testRoutes = []*Route{
5050
FilterFactory: nil,
5151
Description: i18n.MsgTBD,
5252
JSONInputValue: func() interface{} { return &fftypes.MessageInOut{} },
53-
JSONInputMask: []string{"id"},
53+
JSONInputMask: nil,
5454
JSONOutputValue: func() interface{} { return &fftypes.Batch{} },
5555
JSONOutputCodes: []int{http.StatusOK},
5656
},
@@ -108,6 +108,19 @@ var testRoutes = []*Route{
108108
JSONOutputValue: func() interface{} { return nil },
109109
JSONOutputCodes: []int{http.StatusNoContent},
110110
},
111+
{
112+
Name: "op5",
113+
Path: "example2",
114+
Method: http.MethodPost,
115+
PathParams: nil,
116+
QueryParams: nil,
117+
FilterFactory: nil,
118+
Description: i18n.MsgTBD,
119+
JSONInputValue: func() interface{} { return &fftypes.Data{} },
120+
JSONInputMask: []string{"id"},
121+
JSONOutputValue: func() interface{} { return &fftypes.Data{} },
122+
JSONOutputCodes: []int{http.StatusOK},
123+
},
111124
}
112125

113126
func TestOpenAPI3SwaggerGen(t *testing.T) {

0 commit comments

Comments
 (0)