fix decimal mapping (#7875)

This commit is contained in:
William Cheng
2020-11-08 11:46:33 +08:00
committed by GitHub
parent 08fb59009a
commit eacf61de7e
32 changed files with 53 additions and 53 deletions

View File

@@ -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).then {
@@ -260,7 +260,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).then {