mirror of
				https://github.com/beego/bee.git
				synced 2025-10-31 12:33:21 +00:00 
			
		
		
		
	Print warnning only if param location is wrong
This commit is contained in:
		| @@ -419,11 +419,11 @@ func parserComments(comments *ast.CommentGroup, funcName, controllerName, pkgpat | |||||||
| 				case "formData": | 				case "formData": | ||||||
| 					fallthrough | 					fallthrough | ||||||
| 				case "body": | 				case "body": | ||||||
| 					para.In = p[1] | 					break | ||||||
| 				default: | 				default: | ||||||
| 					fmt.Fprintf(os.Stderr, "[%s.%s] Unknow param location: %s, Possible values are `query`, `header`, `path`, `formData` or `body`.\n", controllerName, funcName, p[1]) | 					fmt.Fprintf(os.Stderr, "[%s.%s] Unknow param location: %s, Possible values are `query`, `header`, `path`, `formData` or `body`.\n", controllerName, funcName, p[1]) | ||||||
| 				} | 				} | ||||||
|  | 				para.In = p[1] | ||||||
| 				pp := strings.Split(p[2], ".") | 				pp := strings.Split(p[2], ".") | ||||||
| 				typ := pp[len(pp)-1] | 				typ := pp[len(pp)-1] | ||||||
| 				if len(pp) >= 2 { | 				if len(pp) >= 2 { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 tnextday
					tnextday