specification icon indicating copy to clipboard operation
specification copied to clipboard

Added last_login and last_mobile

Open MineTech13 opened this issue 1 year ago • 4 comments

I added last_login to LimitedUser.yaml and last_mobile to User.yaml and tested it for functionality ^^

MineTech13 avatar Jul 23 '24 07:07 MineTech13

The fields should then be nullable, right?

C0D3-M4513R avatar Jul 24 '24 08:07 C0D3-M4513R

I believe they can be nullable, as they only appear when a friendship is established.

MineTech13 avatar Jul 24 '24 16:07 MineTech13

Strictly speaking, nullable means that the JSON null is a valid value and required means that the key-value pair must be present/defined, e.g.:

nullable required both neither
{ } ✔️ ✔️
{ "key": null } ✔️ ✔️
{ "key": "value" } ✔️ ✔️ ✔️ ✔️

VinyarionHyarmendacil avatar Jul 24 '24 17:07 VinyarionHyarmendacil

In that case, it is indeed nullable, as it is only present when "isFriended" is true.

MineTech13 avatar Jul 25 '24 06:07 MineTech13