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

Allow nullable body type #424

Closed
Foso opened this issue Sep 25, 2023 · 0 comments · Fixed by #425
Closed

Allow nullable body type #424

Foso opened this issue Sep 25, 2023 · 0 comments · Fixed by #425
Assignees
Labels
enhancement New feature or request

Comments

@Foso
Copy link
Owner

Foso commented Sep 25, 2023

Is your feature request related to a problem? Please describe.
Currently it's not possible to make type of a @ Body parameter nullable. Ktor supports setting a null body. We should remove the check for the type and allow adding a nullable type. The user can still decide to use a non-nullable type.

Describe the solution you'd like
Body type can be nullable and Ktorfit throws no compilation error

@Foso Foso added the enhancement New feature or request label Sep 25, 2023
@Foso Foso self-assigned this Sep 25, 2023
Foso added a commit that referenced this issue Sep 25, 2023
Foso added a commit that referenced this issue Sep 25, 2023
@Foso Foso linked a pull request Sep 25, 2023 that will close this issue
1 task
@Foso Foso closed this as completed in #425 Sep 25, 2023
Foso added a commit that referenced this issue Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant