From 8c09b7d7f9b9a4deb3ed8146f6a1bbea9e79b903 Mon Sep 17 00:00:00 2001 From: pyrite Date: Wed, 10 Sep 2025 18:55:41 +0200 Subject: [PATCH] chore(api): update schema --- Cargo.lock | 2 +- torn-api-codegen/Cargo.toml | 2 +- torn-api/openapi.json | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ee1f823..a2fcaf1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2316,7 +2316,7 @@ dependencies = [ [[package]] name = "torn-api-codegen" -version = "0.7.4" +version = "0.7.5" dependencies = [ "heck", "indexmap", diff --git a/torn-api-codegen/Cargo.toml b/torn-api-codegen/Cargo.toml index 038e453..2ec7ec7 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.7.4" +version = "0.7.5" edition = "2021" description = "Contains the v2 torn API model descriptions and codegen for the bindings" license = { workspace = true } diff --git a/torn-api/openapi.json b/torn-api/openapi.json index cf5fd8b..404b713 100644 --- a/torn-api/openapi.json +++ b/torn-api/openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Torn API", "description": "\n * The development of Torn's API v2 is still ongoing.\n * If selections remain unaltered, they will default to the API v1 version.\n * Unlike API v1, API v2 accepts both selections and IDs as path and query parameters.\n * If any discrepancies or errors are found, please submit a [bug report](https://www.torn.com/forums.php#/p=forums&f=19&b=0&a=0) on the Torn Forums.\n * In case you're using bots to check for changes on openapi.json file, make sure to specificy a custom user-agent header - CloudFlare sometimes prevents requests from default user-agents.", - "version": "3.0.18" + "version": "3.0.19" }, "servers": [ { @@ -15259,11 +15259,11 @@ "type": "object" }, "ProfileSpouse": { + "description": "The property 'days_married' is not present if the status is 'Engaged'", "required": [ "id", "name", - "status", - "days_married" + "status" ], "properties": { "id": {