[PR #5908] [MERGED] fix(api): preserve 64-bit integer schema formats #6028

Closed
opened 2026-11-02 04:05:51 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5908
Author: @sanmaxdev
Created: 7/12/2026
Status: ✅ Merged
Merged: 7/12/2026
Merged by: @MHSanaei

Base: main ← Head: fix/openapi-int64


📝 Commits (1)

  • 7cf57c4 fix(api): preserve 64-bit integer schema formats

📊 Changes

5 files changed (+113 additions, -3 deletions)

View changed files

📝 frontend/public/openapi.json (+37 -0)
📝 frontend/src/generated/schemas.ts (+37 -0)
📝 tools/openapigen/emit_jsonschema.go (+5 -1)
➕ tools/openapigen/emit_jsonschema_test.go (+30 -0)
📝 tools/openapigen/walker.go (+4 -2)

📄 Description

Summary

  • preserve 64-bit Go integer width in generated schemas
  • emit format: int64 for 64-bit traffic counters and timestamps
  • add regression coverage for integer schema formats

Testing

  • go test ./tools/openapigen/...
  • golangci-lint run
  • cd frontend && npm run lint && npm run typecheck && npm run test && npm run build
  • go build ./...
  • git diff --check

Closes #5907


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/5908 **Author:** [@sanmaxdev](https://github.com/sanmaxdev) **Created:** 7/12/2026 **Status:** ✅ Merged **Merged:** 7/12/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix/openapi-int64` --- ### 📝 Commits (1) - [`7cf57c4`](https://github.com/MHSanaei/3x-ui/commit/7cf57c4ffd7fc1008576f3284c402dbbdcda8c4b) fix(api): preserve 64-bit integer schema formats ### 📊 Changes **5 files changed** (+113 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `frontend/public/openapi.json` (+37 -0) 📝 `frontend/src/generated/schemas.ts` (+37 -0) 📝 `tools/openapigen/emit_jsonschema.go` (+5 -1) ➕ `tools/openapigen/emit_jsonschema_test.go` (+30 -0) 📝 `tools/openapigen/walker.go` (+4 -2) </details> ### 📄 Description ## Summary - preserve 64-bit Go integer width in generated schemas - emit `format: int64` for 64-bit traffic counters and timestamps - add regression coverage for integer schema formats ## Testing - [x] `go test ./tools/openapigen/...` - [x] `golangci-lint run` - [x] `cd frontend && npm run lint && npm run typecheck && npm run test && npm run build` - [x] `go build ./...` - [x] `git diff --check` Closes #5907 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:05:51 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#6028
No description provided.