I am having real problems, getting my schema to play ball with Swagger using this project. and attempting to display the model schema for any List of Objects.
My rest api data is similar to the following for many of my cases:
Assume I have a java.util.List of class SubObject { int id, String name }
Taking the swagger4spring-web-example project as a base, assume that instead of a Person having a category, it has a List of Categories attached to it with a getter setter.
I am having real problems, getting my schema to play ball with Swagger using this project. and attempting to display the model schema for any List of Objects.
My rest api data is similar to the following for many of my cases: Assume I have a java.util.List of class SubObject { int id, String name }
Taking the swagger4spring-web-example project as a base, assume that instead of a Person having a category, it has a List of Categories attached to it with a getter setter.
When I look at the generated Schema I get:
Note that under items the type is null. When trying to display it I get:
I hate tried changing the datatype in every way I can think of, but can't get it to work.
Any idea what I'm missing?
Thanks.