Skip to content

[BUG] Using webflux with router functions results in duplicated swagger-ui api doc #1529

@influence160

Description

@influence160

Describe the bug
i have created a demo project starting from https://github.com/springdoc/springdoc-openapi-demos/tree/master/springdoc-openapi-spring-boot-2-webflux-functional this demo project and i have used the generated openapi.yaml and wanted to recreate the same project using openApiGenerator maven plugin https://github.com/OpenAPITools/openapi-generator/

i have commited my project in this location https://github.com/influence160/openapi-generator-springdoc-boot-webflux-fonctionnal-example

The bug is that in the resulted swagger-ui, the api doc is duplicated like this
image

To Reproduce

Steps to reproduce the behavior:
to reproduce clone the project : build the project and run the WebfluxFunctionalDemoApplication class and go to http://localhost:8080/webjars/swagger-ui/index.html

note that in this project i just use the module users from the original demo project and i havent used the modules employees and coffee.
note2 : and because i wanted to have a webflux with routing functions project and openpi-generator is generating interfaces that returns Mono<ResponseEntity<T>> i had to convert all the Mono to Mono using the method https://github.com/influence160/openapi-generator-springdoc-boot-webflux-fonctionnal-example/blob/master/src/main/java/othmen/test/openapigenerator/springdoc/demo/app4/user/Util.java

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions