Hi,
I have just upgraded my project to camel version 2.16.0 so I can use the new
camel-swagger-java component a specify header params in my swagger
documentation (which works great, thanks).
I noticed that after upgrading, the import for the swagger annotations
changed from com.wordnik.swagger.annotations.* to io.swagger.annotations.*,
and now the swagger model schema documentation no longer includes the schema
for nested objects.
For example, I have a request that has a List<SomeObject> someObjects and in
the swagger model schema documentation all I see is:
{
"someObjects": [
"SomeObject"
]
}
Before the upgrade the swagger model schema documentation would be
(displaying all properties of the "SomeObject"):
{
"someObjects": [
{
"someObjectProperty1": "",
"someObjectProperty2": ""
}
]
}
All models have the @ApiModel annotation and all properties within the
models have the @ApiModelProperty annotation. Is this a bug that has been
introduced with the new camel-swagger-java component or is there some extra
configuration/annotations required to get the swagger schema documentation
working on nested objects?
Cheers, Jason
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-swagger-java-model-api-not-including-nested-objects-tp5772542.html
Sent from the Camel - Users mailing list archive at Nabble.com.