-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
bug in parsing array param in body #565
Comments
Since integer is not a valid go primitive we can guess integer is a user-defined type. Try
|
@ubogdan Read code here and swagger primitive please. int is considered to be user-defined type, not integer. Moreover, the key issue is on how to parse [ ],not int or integer. |
OK. Thanks. |
I modified code
then displayed: This is perfect for me. |
@sdghchj Could you post the pull request for this issue? :) |
fix via #579. please reopen it if there are still any issues. |
I have a comment as:
However it was parsed as follow in my docs.go:
Schema type was parsed as integer, so it was displayed as follows :


But I want it to be displayed as array. After I edited my docs.go as :
then displayed as what I expected:


I found code here param.Schema.Type is default assigned by refType,which I think shoud be by objectType.
and from here, param.Schema.Type have still not been reassigned . I think it's a bug.
The text was updated successfully, but these errors were encountered: