Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Incorrect logic for default key word in request parameter #119

Closed
huangyg11 opened this issue Aug 11, 2017 · 1 comment · Fixed by #118
Closed

Incorrect logic for default key word in request parameter #119

huangyg11 opened this issue Aug 11, 2017 · 1 comment · Fixed by #118

Comments

@huangyg11
Copy link

@PutMapping("/{id}")
@ResponseStatus(HttpStatus.NO_CONTENT)
public void createOrUpdate(
        @PathVariable long id,
        @RequestBody Video video,
        @RequestParam(defaultValue = "true") boolean create) {
}

result in

Parameter | Type | Optional | Description
create | boolean | false | 

Actually, create is optional with default value set. Also it will be nice to add default value to the request parameter snippet

@jmisur
Copy link
Contributor

jmisur commented Aug 11, 2017

Support for primitive types was under development for some time. If you want you can try out current snapshot build.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants