fix(codegen): fixed prioritisation heuristic for property name
collisions
This commit is contained in:
parent
3e585d7559
commit
daeff053f4
3 changed files with 3 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -2316,7 +2316,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "torn-api-codegen"
|
name = "torn-api-codegen"
|
||||||
version = "0.7.1"
|
version = "0.7.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"heck",
|
"heck",
|
||||||
"indexmap",
|
"indexmap",
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "torn-api-codegen"
|
name = "torn-api-codegen"
|
||||||
authors = ["Pyrit [2111649]"]
|
authors = ["Pyrit [2111649]"]
|
||||||
version = "0.7.1"
|
version = "0.7.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
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 }
|
||||||
|
|
|
||||||
|
|
@ -410,7 +410,7 @@ impl Object {
|
||||||
|| other_name
|
|| other_name
|
||||||
.chars()
|
.chars()
|
||||||
.filter(|c| c.is_alphabetic())
|
.filter(|c| c.is_alphabetic())
|
||||||
.all(|c| c.is_ascii_lowercase())
|
.any(|c| c.is_ascii_uppercase())
|
||||||
{
|
{
|
||||||
entry.insert(prop);
|
entry.insert(prop);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue