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

Handle json nulls in Update and Create #23

Merged
merged 4 commits into from
Sep 28, 2023
Merged

Handle json nulls in Update and Create #23

merged 4 commits into from
Sep 28, 2023

Conversation

KapStorm
Copy link
Contributor

@KapStorm KapStorm commented Sep 27, 2023

Solves #18

Depends on #22

Base automatically changed from fix-create-and-update-json to main September 27, 2023 04:11
@@ -18,4 +19,15 @@ package object models {

case class ErrorResponse(error: String)
implicit val errorResponseFormat: Format[ErrorResponse] = Json.format[ErrorResponse]

implicit def optionFormat[T](using formatter: Format[T]): Format[Option[T]] = Format[Option[T]](
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this, please add a TODO note to revisit the topic later, in theory, nulls should be formatted as nulls.

@AlexITC AlexITC merged commit 4cbfac8 into main Sep 28, 2023
@AlexITC AlexITC deleted the handle-json-nulls branch September 28, 2023 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants