diff --git a/debug.go b/debug.go index 68025eb5c..f28a8e653 100644 --- a/debug.go +++ b/debug.go @@ -15,14 +15,14 @@ func isRelease() bool { return swagMode == release } -//Println calls Output to print to the standard logger when release mode. +// Println calls Output to print to the standard logger when release mode. func Println(v ...interface{}) { if isRelease() { log.Println(v...) } } -//Printf calls Output to print to the standard logger when release mode. +// Printf calls Output to print to the standard logger when release mode. func Printf(format string, v ...interface{}) { if isRelease() { log.Printf(format, v...) diff --git a/property.go b/property.go index 5d1b38558..a3fa5a3d3 100644 --- a/property.go +++ b/property.go @@ -59,8 +59,6 @@ func parseFieldSelectorExpr(astTypeSelectorExpr *ast.SelectorExpr, parser *Parse return propertyName{SchemaType: actualPrimitiveType, ArrayType: actualPrimitiveType} } } - - Printf("%s is not supported. but it will be set with string temporary. Please report any problems.\n", astTypeSelectorExpr.Sel.Name) return propertyName{SchemaType: "string", ArrayType: "string"} } @@ -92,7 +90,6 @@ func getPropertyName(expr ast.Expr, parser *Parser) propertyName { } if _, ok := expr.(*ast.MapType); ok { // if map - //TODO: support map return propertyName{SchemaType: "object", ArrayType: "object"} }