Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"custom struct" is not supported type for formData #801

Closed
lzw5399 opened this issue Oct 5, 2020 · 2 comments
Closed

"custom struct" is not supported type for formData #801

lzw5399 opened this issue Oct 5, 2020 · 2 comments

Comments

@lzw5399
Copy link

lzw5399 commented Oct 5, 2020

Describe the bug
There is a API receive the formData param, I tried the following screenshots behavior but got the error msg.
Thanks in advance^-^

To Reproduce
Steps to reproduce the behavior:

  1. define the swag annotations as below
  2. swag init
  3. saw the error

Expected behavior
I have seen this issue #300 , it seems this feature should be supported in the latest swag release. Did I miss something?

Screenshots

Your swag version
1.6.7

Your go version
1.15.2

Desktop (please complete the following information):

  • OS: WIN 10
@lzw5399
Copy link
Author

lzw5399 commented Oct 5, 2020

Oh, swag 1.6.7 was released in June. Looking forward the new release. I will close it...

@lzw5399 lzw5399 closed this as completed Oct 5, 2020
@j-ibarra
Copy link

j-ibarra commented Jun 6, 2021

swag version v1.7.0

how implement file request whit swaggertype:"file"?

example

image

when i generate the spec the output its :file is not basic types

to work I have to ignore the property on structure

image

and define the file whit Param

image

but we should be able to define with type swaggertype:"file"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants