mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-29 22:47:14 +00:00
fix(api): preserve 64-bit integer schema formats (#5908)
Co-authored-by: sanmaxdev <sanmaxdev@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
814cda3fb4
commit
2c95e29297
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user