camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sw1m1k <asiri...@inbox.lv>
Subject camel swagger doesn't support array of objects as input type
Date Mon, 10 Oct 2016 12:42:44 GMT
Hello, I have a problem with swagger rest dsl. I have a rest service with
input and output type- array of objects, for method POST:
            <post type="bla.bla.bla.Product[]"
outType="bla.bla.bla.Product[]" bindingMode="json">
                <description>Create Products</description>
                
                <responseMessage message="Created Product"/>
                <route>
                    <to
uri="bean:productApi?method=createProducts(${body})"/>
                </route>
            </post>
Problem is that camel swagger doesn't create correct "Example Value" for
request. For response everything works fine. Example Value of Request:
{"test":"test"}
Example Value of Response:
[{"test":"test"}]
So [] is missing from request. If i correctly investigated
"RestSwaggerReader" class, this functionality is missing from
camel-swagger-java 2.17.



--
View this message in context: http://camel.465427.n5.nabble.com/camel-swagger-doesn-t-support-array-of-objects-as-input-type-tp5788557.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message