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:
Ash Berlin-Taylor
2024-01-15 03:57:54 +00:00
committed by GitHub
parent 33faa2960c
commit 90a7354c42

View File

@@ -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);
}
}