Comments (4)
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.
Now, Springwolf always resets the swagger-core
setting back to its original value:
We contributed the getter to swagger-core
a while back in https://github.com/swagger-api/swagger-core/blame/3fcc473c33c56f306902853a451020926ad691ea/modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/TypeNameResolver.java#L25
Unfortunately, it is a static field. So we set and reset it globally.
I wonder whether we are running into concurrency issues.
Is this also reproducible when the Springwolf init-mode
is background
?
from springwolf-core.
Hi @ctasada I had another look at it and stumbled on the configuration property springdoc.pre-loading-enabled
. If it is set to true then then springdoc will create the spec asynchronously although they are only setting the value at the constructor level: https://github.com/springdoc/springdoc-openapi/blob/0fdfabadf9a51895ada8c432aa521715e971b149/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/service/OpenAPIService.java#L210
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:
After a second look, what you could do is to try and create a ModelResolver for springwolf where we can set the use-fqn flag independently from springdoc, something like:
@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.
from springwolf-core.
I tried the different approaches and the issue persists.
Applying the @Bean
affects also both, SpringDocs and SpringWolf
from springwolf-core.
Closing because of inactivity. Please open a new issue if the problem persists.
from springwolf-core.
Related Issues (20)
- Configurable URL in Springwolf UI HOT 9
- StackOverflow during initialization HOT 10
- @AsyncOperation.Headers.Header#value is mandatory and renders as "enum" HOT 7
- TypeToClassConverter is unable to handle types `? extends <other>` HOT 3
- Allow for declaration of multiple co-existing AsyncAPIs HOT 3
- Easier control over quotes / always quote string values in YAML? HOT 11
- Build example for schema: error with SpringWolf 1.4.0, but working fine with 1.2.0 HOT 6
- java.lang.StackOverflowError: null in 1.4.0 release HOT 2
- [Enhancement request] SpringWolf to be compatible with Reactor Kafka HOT 6
- Schema introspection of Map<String,Foo> HOT 7
- AsyncListener/AsyncPublisher supports ElementType.TYPE HOT 5
- Upgrade issues from 1.2.0 to 1.4.0 Reactive HOT 3
- 📍 META: Redesign `springwolf-ui`: Feedback, Discussion & Participation HOT 4
- Support for @KafkaListener beanRef HOT 2
- Support @Hidden annotation to hide certain eventhandlers/listeners HOT 6
- Support for a polymorphic payload HOT 11
- springwolf-amqp-example fails HOT 3
- Header definitions are overriding others HOT 4
- Error creating entityManagerFactory - NullPointerException in Hibernate during application startup with Java 17 and Spring Boot 3.3.2 HOT 5
- Cannot use @Header annotation with method parameters. UnsupportedOperationException: SchemaObjectMerger.merge is trying to put on immutable properties map. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from springwolf-core.