mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-03-10 08:31:23 +00:00
Fix Go generation of type: object inside anyOf (#17339)
Without this the generated code contains `{}` in the field name which is invalid.
This commit is contained in:
committed by
GitHub
parent
33faa2960c
commit
90a7354c42
@@ -743,6 +743,7 @@ public class GoClientCodegen extends AbstractGoCodegen {
|
||||
content = content.trim().replace("[]", "array_of_");
|
||||
content = content.trim().replace("[", "map_of_");
|
||||
content = content.trim().replace("]", "");
|
||||
content = content.trim().replace("interface{}", "Any");
|
||||
return camelize(content);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user