Skip to content

Commit

Permalink
Update property.go
Browse files Browse the repository at this point in the history
optimize
  • Loading branch information
sdghchj committed Feb 23, 2020
1 parent 12801d5 commit 2c8dd22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions property.go
Expand Up @@ -102,8 +102,8 @@ func getPropertyName(pkgName string, expr ast.Expr, parser *Parser) (propertyNam
return propertyName{SchemaType: actualPrimitiveType, ArrayType: actualPrimitiveType}, nil
}

schemeType := TransToValidSchemeType(name)
return propertyName{SchemaType: schemeType, ArrayType: schemeType}, nil
name = TransToValidSchemeType(name)
return propertyName{SchemaType: name, ArrayType: name}, nil
default:
return propertyName{}, errors.New("not supported" + fmt.Sprint(expr))
}
Expand Down

0 comments on commit 2c8dd22

Please sign in to comment.