Skip to content

Commit 3730cb8

Browse files
committed
Fix top-level accronym replacement
1 parent 64710d2 commit 3730cb8

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

packages/go-gen/src/main.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,15 @@ fn main() -> Result<()> {
2121

2222
/// Generates the Go code for the given schema
2323
fn generate_go(root: RootSchema) -> Result<String> {
24-
let title = replace_acronyms(
25-
root.schema
26-
.metadata
27-
.as_ref()
28-
.and_then(|m| m.title.as_ref())
29-
.context("failed to get type name")?,
30-
);
24+
let title = root
25+
.schema
26+
.metadata
27+
.as_ref()
28+
.and_then(|m| m.title.as_ref())
29+
.context("failed to get type name")?;
3130

3231
let mut types = vec![];
33-
build_type(&title, &root.schema, &mut types)
32+
build_type(title, &root.schema, &mut types)
3433
.with_context(|| format!("failed to generate {title}"))?;
3534

3635
// go through additional definitions

0 commit comments

Comments
 (0)