You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Current solution supports defining HTTPRequest and HTTPResponse structs in HTTP handler function definitions.
However, if we define additional struct for our HTTPRequest, e.g. Dependency, and HTTPRequest includes that Dependency as one of the fields, swaggo/swag cli will report an error and won't produce valid yaml.
Describe the bug
Current solution supports defining
HTTPRequest
andHTTPResponse
structs in HTTP handler function definitions.However, if we define additional struct for our
HTTPRequest
, e.g.Dependency
, andHTTPRequest
includes thatDependency
as one of the fields,swaggo/swag
cli will report an error and won't produce validyaml
.To Reproduce
Steps to reproduce the behavior:
Run
swag init --v3.1 --parseInternal --ot "json,yaml" --output ./spec
Output will be unexpected (missing fields in
HTTPRequest
definition)Expected behavior
Expected
yaml
would contain appropriateHTTPRequest
:Your swag version
Swag version: v2.0.0
Your go version
go version go1.21.4 darwin/arm64
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: