Skip to content

@ParameterObject is not working for spring boot webflux #1325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
burimkrasniqi opened this issue Nov 1, 2021 · 2 comments
Closed

@ParameterObject is not working for spring boot webflux #1325

burimkrasniqi opened this issue Nov 1, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@burimkrasniqi
Copy link

Im using Spring Boot Webflux, @ParameterObject is not working at all in my case.

OpenApi 3 is working properly in case of queryParameters, pathParameters, requestBody. Its not working only in case of Query Parameters that are mapped in ContainerFilters.class(by using HandlerMethodArgumentResolver in spring boot) and its not working for Pageable as well.

  @Authorized
  @RequestMapping(value = "", method = RequestMethod.GET)
  public Flux<ContainerResResDto> getContainers(
      @Include User user,
      @ParameterObject @Include ContainerFilters filters,
      @ParameterObject Pageable pageable) {

    return containerService.getContainers(user, filters, pageable).map(ContainerResResDto::of);
  }

Originally posted by @burimkrasniqi in #1324 (comment)

@bnasslahsen
Copy link
Collaborator

@burimkrasniqi,

Make sure you provide a minimal reproducible simple as described in the contribution guide.

This ticket will be closed and can be reopened if the relevant information are provided.

@Pashulity
Copy link

@burimkrasniqi

faced this issue on 1.5.13

upgrading to 1.6.0 worked for me.

@bnasslahsen bnasslahsen added the enhancement New feature or request label Jan 10, 2022
mpleine pushed a commit to mpleine/springdoc-openapi that referenced this issue May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants