Skip to content
New issue

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

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

Already on GitHub? # to your account

Primitive request parameter flagged as required despite default value setting #1049

Closed
tiguchi opened this issue Jul 8, 2020 · 1 comment
Labels
Milestone

Comments

@tiguchi
Copy link

tiguchi commented Jul 8, 2020

Problem

An endpoint method such as follows:

@GET
public List<User> searchUsers(@QueryParam("limit") @DefaultValue("30") int limit, ....)

...produces documentation where primitive type request parameters with default value are flagged as required:

Actual Behavior

required

which appears a bit confusing and could lead to the assumption that these optional request parameters must be specified

Expected Behavior

required

@stoicflame stoicflame added the bug label Jul 8, 2020
@stoicflame stoicflame added this to the 2.14.0 milestone Jul 8, 2020
@stoicflame
Copy link
Owner

Fixed in 2.13.2.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants