We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64710d2 commit 3730cb8Copy full SHA for 3730cb8
packages/go-gen/src/main.rs
@@ -21,16 +21,15 @@ fn main() -> Result<()> {
21
22
/// Generates the Go code for the given schema
23
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
- );
+ let title = root
+ .schema
+ .metadata
+ .as_ref()
+ .and_then(|m| m.title.as_ref())
+ .context("failed to get type name")?;
31
32
let mut types = vec![];
33
- build_type(&title, &root.schema, &mut types)
+ build_type(title, &root.schema, &mut types)
34
.with_context(|| format!("failed to generate {title}"))?;
35
36
// go through additional definitions
0 commit comments