Skip to content

Commit

Permalink
Revert "fix: custom type should appear as their parent type if possible"
Browse files Browse the repository at this point in the history
This reverts commit b71b41f.
  • Loading branch information
denouche committed Sep 3, 2020
1 parent b71b41f commit 9bd4f83
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions docparser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,6 @@ func parseIdentProperty(expr *ast.Ident) (t, format string, err error) {
t = "string"
format = "binary"
default:
if expr.Obj != nil {
// maybe a custom type
if typ, ok := expr.Obj.Decl.(*ast.TypeSpec); ok {
if ident, ok := typ.Type.(*ast.Ident); ok {
return parseIdentProperty(ident)
}
}
}
t = expr.Name
err = fmt.Errorf("Can't set the type %s", expr.Name)
}
Expand Down

0 comments on commit 9bd4f83

Please sign in to comment.