From 05250dcdbd1d80ef0c9e6d439404f3cca5f62e4b Mon Sep 17 00:00:00 2001 From: Franklin Blanco <72827992+franklinblanco@users.noreply.github.com> Date: Wed, 31 Aug 2022 15:02:08 -0400 Subject: [PATCH 1/3] Update Readme.md --- Readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index ff5bff1..686061b 100644 --- a/Readme.md +++ b/Readme.md @@ -91,8 +91,8 @@ A key-message error type to return back a neat, well formatted error to a fronte ```json { - "key": "ERROR_KEY", - "message": "This is the part where you put the error message." +"key": "ERROR_KEY", +"message": "This is the part where you put the error message." } ``` @@ -104,4 +104,4 @@ A wrapper for HttpResponse. Contains a type specification inside so that you can Said type can only be a Serializable (Json). -It can also return a MessageResource or nothing at all. \ No newline at end of file +It can also return a MessageResource or nothing at all. From 6a1e1857c668100c06cab5213a5f47213d39c347 Mon Sep 17 00:00:00 2001 From: Franklin Blanco <72827992+franklinblanco@users.noreply.github.com> Date: Wed, 31 Aug 2022 15:02:23 -0400 Subject: [PATCH 2/3] Update Readme.md --- Readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index 686061b..97e3457 100644 --- a/Readme.md +++ b/Readme.md @@ -90,10 +90,10 @@ Much better and more readable for me. A key-message error type to return back a neat, well formatted error to a frontend. The key is optional, as I won't force you to use internationalization. ```json -{ -"key": "ERROR_KEY", -"message": "This is the part where you put the error message." -} + { + "key": "ERROR_KEY", + "message": "This is the part where you put the error message." + } ``` This is supposed to be sent back to the client, so the client can display the error to the user, and/or get the translation (with the key). It is optional. From 9d44f5722fec3745e760de3e240c48e7cf4120c8 Mon Sep 17 00:00:00 2001 From: Franklin Blanco <72827992+franklinblanco@users.noreply.github.com> Date: Wed, 31 Aug 2022 15:02:40 -0400 Subject: [PATCH 3/3] Update Readme.md --- Readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 97e3457..7830000 100644 --- a/Readme.md +++ b/Readme.md @@ -90,10 +90,10 @@ Much better and more readable for me. A key-message error type to return back a neat, well formatted error to a frontend. The key is optional, as I won't force you to use internationalization. ```json - { +{ "key": "ERROR_KEY", "message": "This is the part where you put the error message." - } +} ``` This is supposed to be sent back to the client, so the client can display the error to the user, and/or get the translation (with the key). It is optional.