|
48 | 48 | import org.springdoc.core.converters.ResponseSupportConverter;
|
49 | 49 | import org.springdoc.core.converters.SchemaPropertyDeprecatingConverter;
|
50 | 50 | import org.springdoc.core.converters.SortOpenAPIConverter;
|
| 51 | +import org.springdoc.core.converters.WebFluxSupportConverter; |
51 | 52 | import org.springdoc.core.customizers.ActuatorOpenApiCustomizer;
|
52 | 53 | import org.springdoc.core.customizers.ActuatorOperationCustomizer;
|
53 | 54 | import org.springdoc.core.customizers.DataRestDelegatingMethodParameterCustomizer;
|
|
69 | 70 | import org.springdoc.core.providers.SpringDataWebPropertiesProvider;
|
70 | 71 | import org.springdoc.core.providers.SpringWebProvider;
|
71 | 72 | import org.springdoc.core.providers.WebConversionServiceProvider;
|
| 73 | +import reactor.core.publisher.Flux; |
72 | 74 |
|
73 | 75 | import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
|
74 | 76 | import org.springframework.beans.factory.config.ConfigurableBeanFactory;
|
@@ -650,4 +652,25 @@ DelegatingMethodParameterCustomizer delegatingMethodParameterCustomizer(Optional
|
650 | 652 | return new DataRestDelegatingMethodParameterCustomizer(optionalSpringDataWebPropertiesProvider, optionalRepositoryRestConfiguration);
|
651 | 653 | }
|
652 | 654 | }
|
| 655 | + |
| 656 | + /** |
| 657 | + * The type Spring doc web flux support configuration. |
| 658 | + */ |
| 659 | + @ConditionalOnClass(Flux.class) |
| 660 | + static class SpringDocWebFluxSupportConfiguration { |
| 661 | + |
| 662 | + /** |
| 663 | + * Web flux support converter web flux support converter. |
| 664 | + * |
| 665 | + * @param objectMapperProvider the object mapper provider |
| 666 | + * @return the web flux support converter |
| 667 | + */ |
| 668 | + @Bean |
| 669 | + @ConditionalOnMissingBean |
| 670 | + @Lazy(false) |
| 671 | + WebFluxSupportConverter webFluxSupportConverter(ObjectMapperProvider objectMapperProvider) { |
| 672 | + return new WebFluxSupportConverter(objectMapperProvider); |
| 673 | + } |
| 674 | + |
| 675 | + } |
653 | 676 | }
|
0 commit comments