Skip to content

Adding @Parameter to @PathVariable breaks Swagger UI #651

@Decat-SimonA

Description

@Decat-SimonA

Describe the bug
Using both @Parameter and @PathVariable in a Controller disable the Swagger UI path filling

To Reproduce
Version:
<springdoc.version>1.3.9</springdoc.version>

Steps to reproduce the behavior:
I created a reproduction case here https://github.com/Decat-SimonA/springdoc-openapi-demos/tree/bug/parameter

  • run WebfluxDemoApplication
  • open the tweet controller in Swagger UI
  • fill with any value
  • click Execute
  • the path will not be replaced: curl -X GET "http://localhost:8080/tweets/{id}" -H "accept: */*"

image

Expected behavior
Adding documentation via @Parameter should not break the Swagger UI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions