Fix base type naming in Go (#8819)

Go generation didn't properly named base type in `getSchemaType`, which
ends up breaking some doc generation.
This commit is contained in:
Thomas Hervé 2021-02-24 19:31:59 +01:00 committed by GitHub
parent 4f4f1d4128
commit f9b1f98d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -393,7 +393,7 @@ public abstract class AbstractGoCodegen extends DefaultCodegen implements Codege
String type = null;
if (ref != null && !ref.isEmpty()) {
type = openAPIType;
type = toModelName(openAPIType);
} else if ("object".equals(openAPIType) && isAnyTypeSchema(p)) {
// Arbitrary type. Note this is not the same thing as free-form object.
type = "interface{}";

View File

@ -51,7 +51,7 @@ Other parameters are passed through a pointer to a apiFooGetRequest struct via t
### Return type
[**InlineResponseDefault**](inline_response_default.md)
[**InlineResponseDefault**](InlineResponseDefault.md)
### Authorization