不再默认生成requestBody

This commit is contained in:
fachebot 2022-03-24 19:14:13 +08:00
parent 227ce53b14
commit bc4121c349

View File

@ -114,7 +114,7 @@ type swaggerOperationObject struct {
OperationID string `json:"operationId"`
Responses swaggerResponsesObject `json:"responses"`
Parameters swaggerParametersObject `json:"parameters,omitempty"`
RequestBody struct {
RequestBody *struct {
Content swaggerContentObject `json:"content,omitempty"`
} `json:"requestBody,omitempty"`
Tags []string `json:"tags,omitempty"`