From 941c6116a9bcc8efd49ea712757550d3f76f05c5 Mon Sep 17 00:00:00 2001 From: Sanaei Date: Thu, 23 Jul 2026 16:28:49 +0200 Subject: [PATCH] chore(openapi): regenerate schemas with int64 formats on node fields Output of make gen: the generator now stamps format int64 on the node status schema's 64-bit integer fields (timestamps, net counters, uptime), syncing the committed OpenAPI doc and generated schemas with the Go structs. --- frontend/public/openapi.json | 7 +++++++ frontend/src/generated/schemas.ts | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/frontend/public/openapi.json b/frontend/public/openapi.json index 731d6f9ee..01dce8c18 100644 --- a/frontend/public/openapi.json +++ b/frontend/public/openapi.json @@ -2385,6 +2385,7 @@ }, "configDirtyAt": { "example": 0, + "format": "int64", "type": "integer" }, "cpuPct": { @@ -2393,6 +2394,7 @@ }, "createdAt": { "example": 1700000000, + "format": "int64", "type": "integer" }, "depletedCount": { @@ -2441,6 +2443,7 @@ }, "lastHeartbeat": { "example": 1700000000, + "format": "int64", "type": "integer" }, "latencyMs": { @@ -2457,10 +2460,12 @@ }, "netDown": { "example": 1048576, + "format": "int64", "type": "integer" }, "netUp": { "example": 2097152, + "format": "int64", "type": "integer" }, "onlineCount": { @@ -2507,10 +2512,12 @@ }, "updatedAt": { "example": 1700003600, + "format": "int64", "type": "integer" }, "uptimeSecs": { "example": 86400, + "format": "int64", "type": "integer" }, "xrayError": { diff --git a/frontend/src/generated/schemas.ts b/frontend/src/generated/schemas.ts index e54876145..8ea931c04 100644 --- a/frontend/src/generated/schemas.ts +++ b/frontend/src/generated/schemas.ts @@ -2359,6 +2359,7 @@ export const SCHEMAS: Record = { }, "configDirtyAt": { "example": 0, + "format": "int64", "type": "integer" }, "cpuPct": { @@ -2367,6 +2368,7 @@ export const SCHEMAS: Record = { }, "createdAt": { "example": 1700000000, + "format": "int64", "type": "integer" }, "depletedCount": { @@ -2415,6 +2417,7 @@ export const SCHEMAS: Record = { }, "lastHeartbeat": { "example": 1700000000, + "format": "int64", "type": "integer" }, "latencyMs": { @@ -2431,10 +2434,12 @@ export const SCHEMAS: Record = { }, "netDown": { "example": 1048576, + "format": "int64", "type": "integer" }, "netUp": { "example": 2097152, + "format": "int64", "type": "integer" }, "onlineCount": { @@ -2481,10 +2486,12 @@ export const SCHEMAS: Record = { }, "updatedAt": { "example": 1700003600, + "format": "int64", "type": "integer" }, "uptimeSecs": { "example": 86400, + "format": "int64", "type": "integer" }, "xrayError": {