Skip to content

Commit d81dcab

Browse files
author
Phillip Wittrock
authored
Merge pull request #72 from Liujingfang1/found
fix the bug of recursion
2 parents 51ed941 + fe45037 commit d81dcab

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"
@@ -429,5 +429,7 @@ func (b *APIs) getMembers(t *types.Type, found sets.String) (map[string]v1beta1.
429429
result[name] = r
430430
}
431431
}
432+
433+
defer found.Delete(t.Name.String())
432434
return members, result
433435
}

0 commit comments

Comments
 (0)