Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form parameters in Java APIs support only "string" #260

Closed
xhh opened this issue Sep 12, 2014 · 0 comments
Closed

Form parameters in Java APIs support only "string" #260

xhh opened this issue Sep 12, 2014 · 0 comments

Comments

@xhh
Copy link
Contributor

xhh commented Sep 12, 2014

As in the Petstore example:

public void updatePetWithForm (String petId, String name, String status) throws ApiException {
  // ...
  Map<String, String> formParams = new HashMap<String, String>();
  // ...
  formParams.put("name", name);formParams.put("status", status);

If a form parameter is of type other than "string", say "integer", an exception will be thrown when putting into formParams.

@fehguy fehguy closed this as completed in 39662e4 Sep 20, 2014
fehguy added a commit that referenced this issue Sep 20, 2014
Fixes #260 convert form parameters to string for Java client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant