fix(api): preserve 64-bit integer schema formats (#5908)

Co-authored-by: sanmaxdev <sanmaxdev@users.noreply.github.com>
This commit is contained in:
Sangeeth Thilakarathna
2026-07-12 14:28:02 +05:30
committed by GitHub
parent 814cda3fb4
commit 2c95e29297
5 changed files with 113 additions and 3 deletions
+5 -1
View File
@@ -97,7 +97,11 @@ func (g *schemaGen) typeSchema(t TypeRef) map[string]any {
}
return map[string]any{"type": "string"}
case KindInt:
return map[string]any{"type": "integer"}
sch := map[string]any{"type": "integer"}
if t.Name == "int64" {
sch["format"] = "int64"
}
return sch
case KindNumber:
return map[string]any{"type": "number"}
case KindBool: