Skip to content

Commit f2b28c3

Browse files
committed
Fix field type name
1 parent cf7d85d commit f2b28c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/go-gen/src/schema.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ pub fn schema_object_type(
4343
replace_custom_type(title)
4444
} else if let Some(reference) = &schema.reference {
4545
// if it has a reference, strip the path and use that
46-
replace_custom_type(
46+
replace_custom_type(&replace_acronyms(
4747
reference
4848
.split('/')
4949
.last()
5050
.expect("split should always return at least one item"),
51-
)
51+
))
5252
} else if let Some(t) = &schema.instance_type {
5353
type_from_instance_type(schema, type_context, t, additional_structs)?
5454
} else if let Some(subschemas) = schema.subschemas.as_ref().and_then(|s| s.any_of.as_ref()) {

0 commit comments

Comments
 (0)