swag
swag copied to clipboard
form is not supported paramType
trafficstars
And it supposed to be?
OAS2 supports form encoded payload via "multipart/form-data" and this is implemented in swagger via
// @accept mpfd see mime-types and
// @Param example formData string false "description" see param-type
The same is referenced here in OAS2 specs..
@ubogdan swagger may meet some base modules which has form but we do not support. In this case, the swag program will crash with this message.
2022/08/16 09:51:59 ParseComment error in file /opt/go/pkg/mod/github.com/astaxie/[email protected]/parser.go :form is not supported paramType
make: *** [swag-doc] Error 1
/opt/go is GOPATH