mirror of
				https://github.com/beego/bee.git
				synced 2025-10-25 22:13:52 +00:00 
			
		
		
		
	array format
This commit is contained in:
		| @@ -777,12 +777,20 @@ func setParamType(para *swagger.Parameter, typ string, pkgpath, controllerName s | ||||
| 		appendModels(pkgpath, controllerName, realTypes) | ||||
| 	} | ||||
| 	if isArray { | ||||
| 		para.Schema = &swagger.Schema{ | ||||
| 			Type: "array", | ||||
| 			Items: &swagger.Schema{ | ||||
| 		if para.In == "body" { | ||||
| 			para.Schema = &swagger.Schema{ | ||||
| 				Type: "array", | ||||
| 				Items: &swagger.Schema{ | ||||
| 					Type:   paraType, | ||||
| 					Format: paraFormat, | ||||
| 				}, | ||||
| 			} | ||||
| 		} else { | ||||
| 			para.Type = "array" | ||||
| 			para.Items = &swagger.ParameterItems{ | ||||
| 				Type:   paraType, | ||||
| 				Format: paraFormat, | ||||
| 			}, | ||||
| 			} | ||||
| 		} | ||||
| 	} else { | ||||
| 		para.Type = paraType | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 zhangyanzhe
					zhangyanzhe