swag icon indicating copy to clipboard operation
swag copied to clipboard

form is not supported paramType

Open libear opened this issue 2 years ago • 3 comments

image

libear avatar Apr 18 '22 09:04 libear

And it supposed to be?

ubogdan avatar Jun 18 '22 13:06 ubogdan

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 avatar Jun 27 '22 14:06 ubogdan

@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

ismdeep avatar Aug 16 '22 01:08 ismdeep