Skip to content

WebFlux functional DSL does not recognise query parameters #971

Closed
@Sam-Kruglov

Description

@Sam-Kruglov

This route from the WebFlux functional demo https://github.com/springdoc/springdoc-openapi-demos/blob/ff9b81f88ce1c66ffb5bf70d9bbbd69f5d77aed6/springdoc-openapi-spring-boot-2-webflux-functional/src/main/java/org/springdoc/demo/app4/user/RoutingConfiguration.java#L21
has 2 issues:

  1. user parameter is documented as type "string" but it should be a User object. But this can be fixed by accepting User instead of Mono<User>, so it's not the fault of springdoc.
  2. If I change the id parameter from PATH to QUERY then it is documented as a single body schema that contains id field and user field. But I want id to be a query parameter and user to be in the request body. @RequestBody on user is ignored.

Screenshot 2020-12-04 at 19 50 22

also, maven project doesn't seem to include -parameters compiler flag, so the real parameter names aren't seen by reflection

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions