forked from loafle/openapi-generator-original
fix decimal mapping (#7875)
This commit is contained in:
@@ -27,7 +27,7 @@ Add a new pet to the store
|
||||
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
|
||||
import PetstoreClient
|
||||
|
||||
let body = Pet(_id: 123, category: Category(_id: 123, name: "name_example"), name: "name_example", photoUrls: ["photoUrls_example"], tags: [Tag(_id: 123, name: "name_example")], status: "status_example") // Pet | Pet object that needs to be added to the store
|
||||
let body = Pet(_id: 123, category: {...}, name: "name_example", photoUrls: ["photoUrls_example"], tags: [{...}], status: "status_example") // Pet | Pet object that needs to be added to the store
|
||||
|
||||
// Add a new pet to the store
|
||||
PetAPI.addPet(body: body) { (response, error) in
|
||||
@@ -275,7 +275,7 @@ Update an existing pet
|
||||
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
|
||||
import PetstoreClient
|
||||
|
||||
let body = Pet(_id: 123, category: Category(_id: 123, name: "name_example"), name: "name_example", photoUrls: ["photoUrls_example"], tags: [Tag(_id: 123, name: "name_example")], status: "status_example") // Pet | Pet object that needs to be added to the store
|
||||
let body = Pet(_id: 123, category: {...}, name: "name_example", photoUrls: ["photoUrls_example"], tags: [{...}], status: "status_example") // Pet | Pet object that needs to be added to the store
|
||||
|
||||
// Update an existing pet
|
||||
PetAPI.updatePet(body: body) { (response, error) in
|
||||
|
||||
Reference in New Issue
Block a user