chore(codegen): updated spec

This commit is contained in:
TotallyNot 2025-04-27 10:59:54 +02:00
parent 4b52c37774
commit c5651efbb0
Signed by: pyrite
GPG key ID: 7F1BA9170CD35D15
3 changed files with 16 additions and 7 deletions

2
Cargo.lock generated
View file

@ -2290,7 +2290,7 @@ dependencies = [
[[package]] [[package]]
name = "torn-api-codegen" name = "torn-api-codegen"
version = "0.1.1" version = "0.1.2"
dependencies = [ dependencies = [
"heck", "heck",
"indexmap", "indexmap",

View file

@ -1,7 +1,7 @@
[package] [package]
name = "torn-api-codegen" name = "torn-api-codegen"
authors = ["Pyrit [2111649]"] authors = ["Pyrit [2111649]"]
version = "0.1.1" version = "0.1.2"
edition = "2024" edition = "2024"
description = "Contains the v2 torn API model descriptions and codegen for the bindings" description = "Contains the v2 torn API model descriptions and codegen for the bindings"
license-file = { workspace = true } license-file = { workspace = true }

View file

@ -8774,7 +8774,9 @@
"attacksrunaway", "attacksrunaway",
"highestterritories", "highestterritories",
"territoryrespect", "territoryrespect",
"membersamount" "membersamount",
"factionage",
"upgradesamount"
] ]
}, },
"FactionBranchStateEnum": { "FactionBranchStateEnum": {
@ -15325,7 +15327,7 @@
"calendar", "calendar",
"crimes", "crimes",
"education", "education",
"factionHof", "factionhof",
"factiontree", "factiontree",
"hof", "hof",
"itemammo", "itemammo",
@ -19336,7 +19338,7 @@
"properties": { "properties": {
"value": { "value": {
"type": "integer", "type": "integer",
"format": "int32" "format": "int64"
}, },
"rank": { "rank": {
"type": "integer", "type": "integer",
@ -19355,8 +19357,15 @@
"type": "string" "type": "string"
}, },
"rank": { "rank": {
"type": "integer", "oneOf": [
{
"type": "number",
"format": "int32" "format": "int32"
},
{
"type": "null"
}
]
} }
}, },
"type": "object" "type": "object"