From c5651efbb0d4ef2c1a425eedd8d9aab200972684 Mon Sep 17 00:00:00 2001 From: TotallyNot <44345987+TotallyNot@users.noreply.github.com> Date: Sun, 27 Apr 2025 10:59:54 +0200 Subject: [PATCH] chore(codegen): updated spec --- Cargo.lock | 2 +- torn-api-codegen/Cargo.toml | 2 +- torn-api-codegen/openapi.json | 19 ++++++++++++++----- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6948ecf..f41bfb4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2290,7 +2290,7 @@ dependencies = [ [[package]] name = "torn-api-codegen" -version = "0.1.1" +version = "0.1.2" dependencies = [ "heck", "indexmap", diff --git a/torn-api-codegen/Cargo.toml b/torn-api-codegen/Cargo.toml index 4d90373..4e42391 100644 --- a/torn-api-codegen/Cargo.toml +++ b/torn-api-codegen/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "torn-api-codegen" authors = ["Pyrit [2111649]"] -version = "0.1.1" +version = "0.1.2" edition = "2024" description = "Contains the v2 torn API model descriptions and codegen for the bindings" license-file = { workspace = true } diff --git a/torn-api-codegen/openapi.json b/torn-api-codegen/openapi.json index 15c72f6..a3603e4 100644 --- a/torn-api-codegen/openapi.json +++ b/torn-api-codegen/openapi.json @@ -8774,7 +8774,9 @@ "attacksrunaway", "highestterritories", "territoryrespect", - "membersamount" + "membersamount", + "factionage", + "upgradesamount" ] }, "FactionBranchStateEnum": { @@ -15325,7 +15327,7 @@ "calendar", "crimes", "education", - "factionHof", + "factionhof", "factiontree", "hof", "itemammo", @@ -19336,7 +19338,7 @@ "properties": { "value": { "type": "integer", - "format": "int32" + "format": "int64" }, "rank": { "type": "integer", @@ -19355,8 +19357,15 @@ "type": "string" }, "rank": { - "type": "integer", - "format": "int32" + "oneOf": [ + { + "type": "number", + "format": "int32" + }, + { + "type": "null" + } + ] } }, "type": "object"