File tree Expand file tree Collapse file tree 3 files changed +24
-4
lines changed
springdoc-openapi-kotlin/src/main
java/org/springdoc/kotlin Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 2222import io .swagger .v3 .core .util .Json ;
2323import kotlin .Deprecated ;
2424import kotlin .coroutines .Continuation ;
25- import kotlinx .coroutines .flow .Flow ;
2625
2726import org .springframework .boot .autoconfigure .condition .ConditionalOnProperty ;
2827import org .springframework .context .annotation .Bean ;
@@ -38,8 +37,7 @@ public class SpringDocKotlinConfiguration {
3837
3938 static {
4039 getConfig ().addRequestWrapperToIgnore (Continuation .class )
41- .addDeprecatedType (Deprecated .class )
42- .addFluxWrapperToIgnore (Flow .class );
40+ .addDeprecatedType (Deprecated .class );
4341 Json .mapper ().registerModule (new KotlinModule ());
4442 }
4543
Original file line number Diff line number Diff line change 1+ package org .springdoc .kotlin ;
2+
3+ import kotlinx .coroutines .flow .Flow ;
4+
5+ import org .springframework .boot .autoconfigure .condition .ConditionalOnClass ;
6+ import org .springframework .boot .autoconfigure .condition .ConditionalOnProperty ;
7+ import org .springframework .context .annotation .Configuration ;
8+
9+ import static org .springdoc .core .Constants .SPRINGDOC_ENABLED ;
10+ import static org .springdoc .core .SpringDocUtils .getConfig ;
11+
12+ @ ConditionalOnClass (Flow .class )
13+ @ Configuration
14+ @ ConditionalOnProperty (name = SPRINGDOC_ENABLED , matchIfMissing = true )
15+ public class SpringDocKotlinxConfiguration {
16+
17+ static {
18+ getConfig ().addFluxWrapperToIgnore (Flow .class );
19+ }
20+
21+ }
Original file line number Diff line number Diff line change 11org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
2- org.springdoc.kotlin.SpringDocKotlinConfiguration
2+ org.springdoc.kotlin.SpringDocKotlinConfiguration,\
3+ org.springdoc.kotlin.SpringDocKotlinxConfiguration
You can’t perform that action at this time.
0 commit comments