Skip to content

Commit 7d8ec67

Browse files
authored
Merge pull request swagger-api#10932 from moshegood/fix.golang.object.to.interface
[go] object to interface code generator should never generate an interface pointer
2 parents 5728ed3 + 42ad540 commit 7d8ec67

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractGoCodegen.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public AbstractGoCodegen() {
5151
"complex64",
5252
"complex128",
5353
"rune",
54+
"interface{}",
5455
"byte")
5556
);
5657

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.16-SNAPSHOT
1+
2.4.20-SNAPSHOT
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.19-SNAPSHOT
1+
2.4.20-SNAPSHOT

samples/client/petstore/go/go-petstore/docs/FakeApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ test inline additionalProperties
316316
Name | Type | Description | Notes
317317
------------- | ------------- | ------------- | -------------
318318
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
319-
**param** | [**interface{}**](interface{}.md)| request body |
319+
**param** | **interface{}**| request body |
320320

321321
### Return type
322322

0 commit comments

Comments
 (0)