Fix bug in dartgen: Increase the processing logic when route.RequestType is empty

master
zhoumingji 2 years ago committed by Kevin Wan
parent b41ccc5992
commit 97ada59175

@ -194,6 +194,10 @@ func extractPositionalParamsFromPath(route spec.Route) string {
func makeDartRequestUrlPath(route spec.Route) string { func makeDartRequestUrlPath(route spec.Route) string {
path := route.Path path := route.Path
if route.RequestType == nil {
return `"` + path + `"`
}
ds, ok := route.RequestType.(spec.DefineStruct) ds, ok := route.RequestType.(spec.DefineStruct)
if !ok { if !ok {
return path return path

Loading…
Cancel
Save