forked from loafle/openapi-generator-original
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:
parent
4f4f1d4128
commit
f9b1f98d21
@ -393,7 +393,7 @@ public abstract class AbstractGoCodegen extends DefaultCodegen implements Codege
|
|||||||
String type = null;
|
String type = null;
|
||||||
|
|
||||||
if (ref != null && !ref.isEmpty()) {
|
if (ref != null && !ref.isEmpty()) {
|
||||||
type = openAPIType;
|
type = toModelName(openAPIType);
|
||||||
} else if ("object".equals(openAPIType) && isAnyTypeSchema(p)) {
|
} else if ("object".equals(openAPIType) && isAnyTypeSchema(p)) {
|
||||||
// Arbitrary type. Note this is not the same thing as free-form object.
|
// Arbitrary type. Note this is not the same thing as free-form object.
|
||||||
type = "interface{}";
|
type = "interface{}";
|
||||||
|
@ -51,7 +51,7 @@ Other parameters are passed through a pointer to a apiFooGetRequest struct via t
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**InlineResponseDefault**](inline_response_default.md)
|
[**InlineResponseDefault**](InlineResponseDefault.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user