I'm developing a backend API and some response parameters do not have a value (such as null on DB) and I'm struggling with the design whether to return it as null or empty to match the type.
Currently, it is not unified, so the caller decides and absorbs it, but which one is better suited to?
api
It's more of an opinion than an answer.
© 2024 OneMinuteCode. All rights reserved.