GitHub user Sw1m1k opened a pull request:
https://github.com/apache/camel/pull/1219
Added array support for input body paremeter
Camel-swagger-java didnt support array of input objects. To check it, you
can modify "/put root" in RestSwaggerReaderModelTest.java
(.put().description("Updates or create a user").type**List**(User.class)) and
check that final json file won't contain <"type" : "array"> defenition for
input object.
This solution is not perfect, but it just show that problem exist and can
be fixed very fast.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/Sw1m1k/camel master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/1219.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1219
----
commit 5e323919d43bb23daf28ca0a7ffcedd8bf0d5f2c
Author: Arturs <[email protected]>
Date: 2016-10-21T10:27:05Z
Added array support for input body paremeter
commit a5d2ce1918b81010e1444b14867af0e62ffe9ad1
Author: Arturs <[email protected]>
Date: 2016-10-21T13:13:19Z
Removed multiple arrays
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---