specification
specification copied to clipboard
Added last_login and last_mobile
I added last_login to LimitedUser.yaml and last_mobile to User.yaml and tested it for functionality ^^
The fields should then be nullable, right?
I believe they can be nullable, as they only appear when a friendship is established.
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" } |
✔️ | ✔️ | ✔️ | ✔️ |
In that case, it is indeed nullable, as it is only present when "isFriended" is true.