Skip to content

String array query parameter is not rendered at Swagger UI when default value is present #2200

@Halynsky

Description

@Halynsky
  • What version of the library are you using? Is it the latest version? The latest released version is Download

What kind of issue is this?

  • Bug report.
    • include any output you've received; logs, json snippets etc.; and what the expected output should be

image

Regular (String array - String[]) query parameter can't be rendered at Swagger UI.
Everything worked fine before update to 2.8.0. Last used version was 2.7.1-SNAPSHOT.
I think it is bug of the current Swagger version that is used in current version of SpringFox.

One more note!
Bug is disappeared when I removed default value from annotation
@RequestParam(defaultValue = "20001")

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