Skip to content

Commit fe45037

Browse files
committed
fix the bug of recursion
1 parent e6cd5e5 commit fe45037

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/internal/codegen/parse/validation.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (b *APIs) parsePrimitiveValidation(t *types.Type, found sets.String, commen
184184
f = "int32"
185185
case "float", "float32":
186186
n = "number"
187-
f = "loat"
187+
f = "float"
188188
case "float64":
189189
n = "number"
190190
f = "double"
@@ -427,5 +427,7 @@ func (b *APIs) getMembers(t *types.Type, found sets.String) (map[string]v1beta1.
427427
result[name] = r
428428
}
429429
}
430+
431+
defer found.Delete(t.Name.String())
430432
return members, result
431433
}

0 commit comments

Comments
 (0)