Skip to content

[BUG][JAVA] Uses spring pageable without any config indicating to do so #13052

@downloadpizza

Description

@downloadpizza

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
Description

Using any schema called Pageable will instead use springs pageable (in a spring project)

openapi-generator version

6.0.1

OpenAPI declaration file content or url

https://github.com/downloadpizza/spring-openapi-pageable-poc

Generation Details

refer to pom.xml in my project

Steps to reproduce
  1. Clone my project
  2. Run maven compile
  3. Look in generated PagedObject class and check which Pageable is used.
Related issues/PRs

#8360

Suggest a fix

redo the entire Pageable and springfox thing. #8192 (comment) as this user has said (which I agree with) it is a dumb thing for a mature library. Its a random very intrusive change that benefits very few people.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions