Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Endpoints provide default media type for 'produces' if there is no return type #24

Closed
cc-jhr opened this issue Mar 11, 2019 · 0 comments
Assignees
Labels
Bug Something isn't working Spring Relates to the SpringConverter
Milestone

Comments

@cc-jhr
Copy link
Collaborator

cc-jhr commented Mar 11, 2019

Setup information
hikaku version: 1.1.1
specification converter: -
implementation converter: SpringConverter
build tool and version: gradle 5.2.1
test framework: junit 5.4.0

Describe the bug
If you use @RestController annotation and a controller method does not provide a return type, then the resulting endpoint lists the default media type for produces.

Expected behavior
Produces list should be empty.

Code samples:
Can you provide specifications or code snippets?

@RestController
@RequestMapping("/todos")
class TodosController {

    @RequestMapping(method = [POST])
    fun createTodo(@RequestBody todo: Todo) { }
}
@cc-jhr cc-jhr added Bug Something isn't working Spring Relates to the SpringConverter labels Mar 11, 2019
@cc-jhr cc-jhr added this to the v2.0.0 milestone Mar 11, 2019
@cc-jhr cc-jhr self-assigned this Mar 11, 2019
cc-jhr added a commit that referenced this issue Mar 11, 2019
cc-jhr added a commit that referenced this issue Mar 11, 2019
@cc-jhr cc-jhr closed this as completed Mar 11, 2019
cc-jhr added a commit that referenced this issue Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Spring Relates to the SpringConverter
Projects
None yet
Development

No branches or pull requests

1 participant