New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
objectMapper NPE on branch refactor/538/spike-to-seperate-models-and-dtos #635
Comments
@who do you have the repo for me to look at? Im interested in the configuration you have. I suspect you're missing an |
Unfortunately the codebase I'm working on isn't shareable at the moment. However, your suspicion seems to be correct - I had a separate Are there any guidelines as to which |
@who Its also on my list to document. However, just to help people with the similar issues like you've had, could I ask you to provide a little bit of background, albeit with a contrived example to demonstrate your configuration setup? Setting up the ObjectMapper has been one of the most contentious issues we've faced in the past. Since this is a different approach, we'd like to document gotchas. |
@who Closing this as its no longer an issue |
How to override the model property datatypes How to override the documentation endpoints Also a stab at javadocs relates to #635
|
Hi, i have this issue in Spring Boot application using Springfox 2.4 |
@ezraroi please use 2.5.0 |
Looks like the swagger ui in version 2.5.0 is not working properly with spring boot... it is not displaying most of my endpoints although the json includes them all |
I am seeing: forever.... |
I have been working over the new documentation that @dilipkrish has been putting together for the Swagger 2.0 strategy.
However, I seem to hit a roadblock. When I start my app, my configuration class, annotated with
@EnableSwagger2
, kicks in. After my Docket instance is created in this class,DocumentationPluginsBootstrapper.onApplicationEvent.(ContextRefreshedEvent contextRefreshedEvent)
kicks in to fire off ascanDocumentation
call. Eventually,FieldModelPropertyProvider.beanDescription
is called, but beforeFieldModelPropertyProvider.onApplicationEvent
, which meansFieldModelPropertyProvider.objectMapper
is still null. WhenFieldModelPropertyProvider.beanDescription
tries to invokeobjectMapper.getSerializationConfig()
, theNullPointerException
is triggered.The text was updated successfully, but these errors were encountered: