-
Notifications
You must be signed in to change notification settings - Fork 64
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
use-fqn
overrides SpringDoc configuration
#635
Comments
Thank you for the report and I agree with your expectation. As part of the 1.0 release, I also slightly updated the code for handling the fqn setting. Line 175 in a3b4743
We contributed the getter to I wonder whether we are running into concurrency issues. Is this also reproducible when the Springwolf |
Hi @ctasada I had another look at it and stumbled on the configuration property If thats the case, there might be issues with multithreading. We can have a deeper look if you could provide an example that reproduces the issue. Edit: @Bean
public ModelResolver modelResolver(ObjectMapper objectMapper) {
final TypeNameResolver resolver = new TypeNameResolver() {};
resolver.setUseFqn(false);
return new ModelResolver(objectMapper,resolver );
} If it works, we could use that as a solution for springwolf. |
I tried the different approaches and the issue persists. Applying the |
Describe the bug
In an application that uses both
SpringDoc
for OpenApi andSpring-Wolf
for AsyncAPI, the usage ofspring-wolf.use-fqn
overrides the one used byspringdoc.use-fqn
I just realized after upgrading an application to spring-wolf:core 1.0.0 since the
use-fqn
is now defaulting totrue
the issue may be older.Code example
Having a SpringBoot application with both dependencies, and the application.yml configured like
I would expect the
springdoc
generated OpenAPI uses the FQN, but it's not the case. The value used forspring-wolf.use-fqn
is alway taking precedence.Stack trace and error logs
None
The text was updated successfully, but these errors were encountered: