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 #1420

Closed
byrebg opened this issue Jul 26, 2017 · 3 comments
Closed

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

byrebg opened this issue Jul 26, 2017 · 3 comments

Comments

@byrebg
Copy link

byrebg commented Jul 26, 2017

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.

@webron
Copy link
Contributor

webron commented Jul 26, 2017

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

@byrebg
Copy link
Author

byrebg commented Jul 26, 2017

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

@webron
Copy link
Contributor

webron commented Jul 26, 2017

This issue was moved to swagger-api/swagger-codegen#6190

@webron webron closed this as completed Jul 26, 2017
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

2 participants