Fix type mapping for fields
This commit is contained in:
2
class.go
2
class.go
@@ -287,7 +287,7 @@ func parseField(s *goquery.Selection) (Field, error) {
|
|||||||
if typeElement.Length() == 0 {
|
if typeElement.Length() == 0 {
|
||||||
return res, fmt.Errorf("no type found")
|
return res, fmt.Errorf("no type found")
|
||||||
}
|
}
|
||||||
res.Type = CleanUp(typeElement.Text())
|
res.Type = MapType(CleanUp(typeElement.Text()))
|
||||||
|
|
||||||
comments := s.ChildrenFiltered("div")
|
comments := s.ChildrenFiltered("div")
|
||||||
if comments.Length() == 0 {
|
if comments.Length() == 0 {
|
||||||
|
Reference in New Issue
Block a user