Skip to content

default-flat-param-object does not take effect #2181

Closed
@Charles7c

Description

@Charles7c

If you ❤️ this project consider becoming a sponsor.
If you already use the springdoc-openapi, please do not forget adding a github star to this repository.

Describe the bug

I upgraded the springdoc-openapi dependencies from 1.6.9 to 1.6.15, and then I tried to use the new feature default-flat-pam-object, but it didn't work after the configuration was complete.

To Reproduce
Steps to reproduce the behavior:

  • What version of spring-boot you are using?
    Spring Boot 2.7.10

  • What modules and versions of springdoc-openapi are you using?
    springdoc-openapi 1.6.15

  • What is the actual and the expected result using OpenAPI Description (yml or json)?
    I had to make extensive use of the @ParameterObject annotation before, and I hope that with this configuration I can get rid of this hassle.

  • Provide with a sample code (HelloController) or Test that reproduces the problem

springdoc:
  swagger-ui:
    path: /swagger-ui.html
    tags-sorter: alpha
    operations-sorter: alpha
    show-extensions: true
  api-docs:
    enabled: ${springdoc.swagger-ui.enabled}
    path: /v3/api-docs
  group-configs:
    - group: 'default'
      paths-to-match: '/**'
      packages-to-scan: top.charles7c.cnadmin.webapi.controller
  default-flat-param-object: true

https://github.com/Charles7c/continew-admin

Screenshots
image

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