瀏覽代碼

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.
Sanaei 11 小時之前
父節點
當前提交
941c6116a9
共有 2 個文件被更改,包括 14 次插入0 次删除
  1. 7 0
      frontend/public/openapi.json
  2. 7 0
      frontend/src/generated/schemas.ts

+ 7 - 0
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": {

+ 7 - 0
frontend/src/generated/schemas.ts

@@ -2359,6 +2359,7 @@ export const SCHEMAS: Record<string, unknown> = {
       },
       "configDirtyAt": {
         "example": 0,
+        "format": "int64",
         "type": "integer"
       },
       "cpuPct": {
@@ -2367,6 +2368,7 @@ export const SCHEMAS: Record<string, unknown> = {
       },
       "createdAt": {
         "example": 1700000000,
+        "format": "int64",
         "type": "integer"
       },
       "depletedCount": {
@@ -2415,6 +2417,7 @@ export const SCHEMAS: Record<string, unknown> = {
       },
       "lastHeartbeat": {
         "example": 1700000000,
+        "format": "int64",
         "type": "integer"
       },
       "latencyMs": {
@@ -2431,10 +2434,12 @@ export const SCHEMAS: Record<string, unknown> = {
       },
       "netDown": {
         "example": 1048576,
+        "format": "int64",
         "type": "integer"
       },
       "netUp": {
         "example": 2097152,
+        "format": "int64",
         "type": "integer"
       },
       "onlineCount": {
@@ -2481,10 +2486,12 @@ export const SCHEMAS: Record<string, unknown> = {
       },
       "updatedAt": {
         "example": 1700003600,
+        "format": "int64",
         "type": "integer"
       },
       "uptimeSecs": {
         "example": 86400,
+        "format": "int64",
         "type": "integer"
       },
       "xrayError": {