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
Desktop (please complete the following information):
OS: Windows11
Browser:--
Version:--
Additional context
I found that func getUnderlyingSchema returns nil when the underlay param type is "interface{}". Caller without nil checking will run into fatal panic.
Describe the bug
Panic while using interface or []interface param type
To Reproduce
code:
command:
swag.exe init --pd
Expected behavior
Screenshots
--
Your swag version
2.0.0-rc3
Your go version
1.18.10
Desktop (please complete the following information):
Additional context
I found that func getUnderlyingSchema returns nil when the underlay param type is "interface{}". Caller without nil checking will run into fatal panic.
https://github.com/swaggo/swag/blob/master/operation.go#L310
https://github.com/swaggo/swag/blob/master/operation.go#L330
The text was updated successfully, but these errors were encountered: