Skip to content

Commit

Permalink
Address coverage drop from #337
Browse files Browse the repository at this point in the history
Coverage for JSONInputMask was inadvertently lost.

Signed-off-by: Andrew Richardson <[email protected]>
  • Loading branch information
awrichar committed Dec 2, 2021
1 parent d3d1fbf commit 4682849
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion internal/oapispec/openapi3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
},
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 4682849

Please sign in to comment.