You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm still orientating your APIs, since there are not much code samples in your documentation (byside of the REST-Calls). I started checking your SDK code. Did I just check out the wrong classes or are there really no null safety annotations?
To be honest that is one of the main reasons for me to use a SDK to have a clear interface which tells you which fields you can expect and which not.
The text was updated successfully, but these errors were encountered:
Thanks for reaching out here and hope you had a great experience orientating our APIs! As to you comment about null safety, I get where you are coming from. Usually in any java web-application this would be a very crucial aspect to include in order to prevent NPEs, and we most certainly do this in our own codebase(s).
However, this library is inherently null safe, which is why we chose to omit any such safety checks I suppose. This, because we mostly generate the request/response models from OpenAPI specifications which have been proven over time (and after some tinkering) to be quite reliable. Furthermore the inherent nature of interacting with APIs means, you should always be weary of what responses one can get based on the triggered flow for a certain endpoint. E.g. we could make pretty much all response fields in our library have the @CheckForNull or @Nullable annotation if you aggregate over all the different kinds of responses you can expect from a single endpoint. This would defeat the purpose of having these safety annotations in the first place I believe.
Let me know if this reasoning makes sense or if you think there's still a distinct use case for this. I'd be happy to hear your opinion about this!
That is fine. One team mate decided to implement the REST-API in pure dart. Works very well and makes it easier to test the communication on the development machines. The API is much cleaner then other terminals we came across. Nice work!
I'm still orientating your APIs, since there are not much code samples in your documentation (byside of the REST-Calls). I started checking your SDK code. Did I just check out the wrong classes or are there really no null safety annotations?
To be honest that is one of the main reasons for me to use a SDK to have a clear interface which tells you which fields you can expect and which not.
The text was updated successfully, but these errors were encountered: