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

Swagger code gen for client fails for request body with string array #6190

Open
webron opened this issue Jul 26, 2017 · 4 comments
Open

Swagger code gen for client fails for request body with string array #6190

webron opened this issue Jul 26, 2017 · 4 comments

Comments

@webron
Copy link
Contributor

webron commented Jul 26, 2017

From @byrebg on July 26, 2017 3:29

Attached is the YAML file used for generating the client code. for Request body having type as array it fails

{"in":"body","name":"parameterFileIds","description":"List of parameter file Ids","required":true,"schema":{"type":"array","items":{"string"}}}

Exception :
{"code":1,"type":"error","message":"Unable to build target: Could not process operation:\n Tag: parameters-controller\n Operation: deleteModelParameterFilesUsingDELETE\n Resource: delete /v1/projects/{projectId}/models/{modelId}/parameters\n Definitions: \n Exception: null"}

test_array.txt
Attached is file, rename file extension txt to json

Suggestion : Is there any alternates or am i missing something here.

Copied from original issue: swagger-api/swagger-editor#1420

@webron
Copy link
Contributor Author

webron commented Jul 26, 2017

The attached file is not a valid JSON (it's definitely not YAML).

@webron
Copy link
Contributor Author

webron commented Jul 26, 2017

From @byrebg on July 26, 2017 4:6

swagger_array.txt
Sorry for incorrect file
rename file extension txt to json

@peteryang023
Copy link

What's the stauts of the issue? I use swagger-codegen-cli-2.2.3.jar and encounter this issue too.

@pelepelin
Copy link

pelepelin commented Oct 18, 2017

duplicate of #6098

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

3 participants