Response object in another package #37
Unanswered
Dallin-Cawley
asked this question in
Q&A
Replies: 1 comment
-
Hi @Dallin-Cawley , Just going by my hunch on this, you might be missing an import for that {a different package}.Resource for the package. If this is the same with you, you can try to add an empty import to that package. There are many other examples you can find the integrations tests which also works as examples for this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a handler godoc comment as follows
With the
{a different packager}.Resource
defined asThere is not schema created for the
{a different package}.Resource
when using the following commandgo-swagger3 --module-path . --main-file-path ./main.go --output open_api_spec.json --schema-without-pkg --generate-yaml true
And as a result, there is no example response in the generated swagger UI. Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions