-
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
Use struct define in vendor #242
Comments
Have the same problem on Tried
which throws a panic on
which builds docs, but swagger-ui shows an error |
@easonlin404 @pei0804 could you please take a look at this issue ? thank you ! |
I have same issue. |
OK. |
Describe the bug
Hello,
I have the following folder hierarchy :
I would like to reference the struct contains in vendor/my.repository/.../user.go for the response of my endpoint user for example.
And I have no clue about how I can do it. I have tried several different possible configuration but nothing good so far.
Here is my go client of the endpoint :
This code produce the following error :
I also try to put the complete package name instead of the alias :
// @Success 200 {object} my.repository/common-lib/model.UserEntity
which is generate the swagger without the definition of the struct
UserEntity
Expected behavior
The goal is at the end to generate the definition for all struct (in the swagger.json), event if the struct are in the vendor of the application
Your swag version
v1.4.0
I also tried with the last commit on master 6993bc5667b70aa...
Desktop (please complete the following information):
Additional context
I suppose this is related to the issue #188. But I don't get it how to reference the types that come from the vendor folder
The text was updated successfully, but these errors were encountered: