Closed daptordarattler closed 9 years ago
I have figured out what the main problem is. It seems swagger does a deep rendering of my domain objects which exposes irrelevant models and hence increases the size of the returned json document.
How do I disable this behaviour in swagger?
OK , just fixed it by annotating the object with
@ApiModel
And it reduced the number of unknown references . At least its working now, so I can map the rest of my endpoints
I am getting this error "allocation size overflow" whiles using swagger4jaxrs. I get this error in my browser, and it comes when swagger tries getting the resource for the first endpoint in my api tree.
When I open the url directly, it shows a large listing of models that are not custom to my application itself but more related to the system fields
As shown above. Most of them are not a part of my app but are present.. How do I fix this?