From 45899430bb37ef818aa4b30bdac746337e07bf88 Mon Sep 17 00:00:00 2001 From: pyrite Date: Wed, 28 May 2025 10:43:44 +0200 Subject: [PATCH 1/2] chore(torn-api): changed personalstats order --- Cargo.lock | 2 +- torn-api/Cargo.toml | 2 +- torn-api/openapi.json | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 06a011d..7b01e21 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2294,7 +2294,7 @@ dependencies = [ [[package]] name = "torn-api" -version = "1.6.2" +version = "1.6.3" dependencies = [ "bon", "bytes", diff --git a/torn-api/Cargo.toml b/torn-api/Cargo.toml index c0d31ee..75fd245 100644 --- a/torn-api/Cargo.toml +++ b/torn-api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "torn-api" -version = "1.6.2" +version = "1.6.3" edition = "2021" description = "Auto-generated bindings for the v2 torn api" license-file = { workspace = true } diff --git a/torn-api/openapi.json b/torn-api/openapi.json index e01f22b..46df8f4 100644 --- a/torn-api/openapi.json +++ b/torn-api/openapi.json @@ -16606,10 +16606,10 @@ "$ref": "#/components/schemas/UserPersonalStatsFullPublic" }, { - "$ref": "#/components/schemas/UserPersonalStatsCategory" + "$ref": "#/components/schemas/UserPersonalStatsPopular" }, { - "$ref": "#/components/schemas/UserPersonalStatsPopular" + "$ref": "#/components/schemas/UserPersonalStatsCategory" }, { "$ref": "#/components/schemas/UserPersonalStatsHistoric" @@ -22868,4 +22868,4 @@ "description": "Part of Torn section" } ] -} \ No newline at end of file +} From e5a766b8932fa62cbd853b42830dd09aa4550ba9 Mon Sep 17 00:00:00 2001 From: pyrite Date: Wed, 28 May 2025 11:01:45 +0200 Subject: [PATCH 2/2] fix(torn-api): fix popular personalstats --- Cargo.lock | 2 +- torn-api/Cargo.toml | 2 +- torn-api/openapi.json | 15 +++++++++++---- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7b01e21..e095454 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2294,7 +2294,7 @@ dependencies = [ [[package]] name = "torn-api" -version = "1.6.3" +version = "1.6.4" dependencies = [ "bon", "bytes", diff --git a/torn-api/Cargo.toml b/torn-api/Cargo.toml index 75fd245..5b0558c 100644 --- a/torn-api/Cargo.toml +++ b/torn-api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "torn-api" -version = "1.6.3" +version = "1.6.4" edition = "2021" description = "Auto-generated bindings for the v2 torn api" license-file = { workspace = true } diff --git a/torn-api/openapi.json b/torn-api/openapi.json index 46df8f4..b45e528 100644 --- a/torn-api/openapi.json +++ b/torn-api/openapi.json @@ -14971,13 +14971,20 @@ "properties": { "crimes": { "required": [ - "total", "version" ], "properties": { - "total": { - "type": "integer", - "format": "int32" + "offenses": { + "type": "object", + "required": [ + "total" + ], + "properties": { + "total": { + "type": "integer", + "format": "int32" + } + } }, "version": { "type": "string"