Skip to content

Commit 0b7ec79

Browse files
committed
openapi: always mark requestBody as required
Signed-off-by: Andrew Richardson <[email protected]>
1 parent 5dd3c9a commit 0b7ec79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/ffapi/openapi3.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ func (sg *SwaggerGen) getPathItem(doc *openapi3.T, path string) *openapi3.PathIt
128128
func (sg *SwaggerGen) initInput(op *openapi3.Operation) {
129129
op.RequestBody = &openapi3.RequestBodyRef{
130130
Value: &openapi3.RequestBody{
131-
Content: openapi3.Content{},
131+
Required: true,
132+
Content: openapi3.Content{},
132133
},
133134
}
134135
}

0 commit comments

Comments
 (0)