Thomas Kratz
Thomas Kratz
At my side I'd like to make some things readonly in the openapi document. So I like the idea from https://github.com/go-fuego/fuego/issues/222#issuecomment-2555931137
I tried an example using Api-Versioning, and my native test still fail with: ``` .UnsatisfiedDependencyException: Error creating bean with name 'springDocProviders': Unsatisfied dependency expressed through method 'springDocProviders' parameter 5: Error...
I needed: ```java hints.reflection().registerType( TypeReference.of(DefaultApiVersionStrategy.class), builder -> builder.withField("versionResolvers")); hints.reflection().registerType( TypeReference.of(HeaderApiVersionResolver.class), builder -> builder.withField("headerName")); ```
@bnasslahsen I will take another look at it tomorrow, as I think there will be other hints needed for the different strategies available.
I see that the proxy reflection metadata gets generated for example for OpenApiWebMvcResource by spring aot. So my guess for the moment would be that the hints from https://github.com/springdoc/springdoc-openapi/issues/3155#issuecomment-3564108135 should...
I found that you used @Lazy in the SwaggerWelcome https://github.com/springdoc/springdoc-openapi/blob/c833910f9396fa04208a4ee707a7821827168f54/springdoc-openapi-starter-webmvc-ui/src/main/java/org/springdoc/webmvc/ui/SwaggerConfig.java#L86 definition to resolve a circular dependency which causes the proxy to get created. According to https://github.com/spring-projects/spring-framework/issues/30985 this will not work...
you could try using a shiki transformer. https://shiki.style/packages/transformers#transformernotationwordhighlight