You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
body:= openapiclient.OuterComposite{MyNumber: 123, MyString: "MyString_example", MyBoolean: false}// OuterComposite | Input composite as post body (optional)
175
+
body:=*openapiclient.NewOuterComposite()// OuterComposite | Input composite as post body (optional)
Copy file name to clipboardExpand all lines: samples/client/petstore/go/go-petstore/docs/PetApi.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ import (
35
35
)
36
36
37
37
funcmain() {
38
-
body:= openapiclient.Pet{Id: int64(123), Category: openapiclient.Category{Id: int64(123), Name: "Name_example"}, Name: "Name_example", PhotoUrls: []string{"PhotoUrls_example"), Tags: []Tag{openapiclient.Tag{Id: int64(123), Name: "Name_example"}), Status: "Status_example"}// Pet | Pet object that needs to be added to the store
38
+
body:=*openapiclient.NewPet("Name_example", []string{"PhotoUrls_example"})// Pet | Pet object that needs to be added to the store
body:= openapiclient.Pet{Id: int64(123), Category: openapiclient.Category{Id: int64(123), Name: "Name_example"}, Name: "Name_example", PhotoUrls: []string{"PhotoUrls_example"), Tags: []Tag{openapiclient.Tag{Id: int64(123), Name: "Name_example"}), Status: "Status_example"}// Pet | Pet object that needs to be added to the store
370
+
body:=*openapiclient.NewPet("Name_example", []string{"PhotoUrls_example"})// Pet | Pet object that needs to be added to the store
Copy file name to clipboardExpand all lines: samples/client/petstore/go/go-petstore/docs/StoreApi.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -229,7 +229,7 @@ import (
229
229
)
230
230
231
231
funcmain() {
232
-
body:= openapiclient.Order{Id: int64(123), PetId: int64(123), Quantity: 123, ShipDate: "TODO", Status: "Status_example", Complete: false}// Order | order placed for purchasing the pet
232
+
body:=*openapiclient.NewOrder()// Order | order placed for purchasing the pet
Copy file name to clipboardExpand all lines: samples/openapi3/client/petstore/go/go-petstore/docs/FakeApi.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,7 +167,7 @@ import (
167
167
)
168
168
169
169
funcmain() {
170
-
outerComposite:= openapiclient.OuterComposite{MyNumber: 123, MyString: "MyString_example", MyBoolean: false}// OuterComposite | Input composite as post body (optional)
170
+
outerComposite:=*openapiclient.NewOuterComposite()// OuterComposite | Input composite as post body (optional)
0 commit comments