I recently noticed the new API documentation (looks very nice, btw) and observed that a lot of fields previously marked "some-type or null" in the old documentation no longer have the "or null" specified. However, API requests still supply null values where the new documentation does not specify that they will be there. I suspect there is some statement about nulls that I may have missed. Can someone provide a link, reference or statement that I can use as a guide in my app on where TMDB might supply null values unexpectedly or how I can know when to expect null values. That would be much appreciated.
Δεν μπορείτε να βρείτε κάποια ταινία ή σειρά; Συνδεθείτε για να τη δημιουργήσετε.
Θέλετε να αξιολογήσετε ή να προσθέσετε αυτό το στοιχείο σε μια λίστα;
Δεν είσαι μέλος;
Απάντηση από τον/την pajatopmr
στις 6 Ιούλιος 2023 στις 07:42 ΕΊΜΑΙ
After doing some searching, I now believe the current documentation is the old documentation with a new face that does not indicate where nulls are relevant. Love to hear that I'm wrong.
Απάντηση από τον/την Visne
στις 9 Φεβρουάριος 2024 στις 09:27 ΜΜ
I think you are correct, and this is quite sad.
Απάντηση από τον/την rednaz
στις 24 Ιούνιος 2024 στις 06:44 ΕΊΜΑΙ
I've stumbled across this recently when trying to get some robustness around the API. It's hard to write defensive code when you aren't sure what can be null. Surely the only option isn't to just assume everything can be null?
Απάντηση από τον/την Travis Bell
στις 25 Ιούνιος 2024 στις 02:08 ΜΜ
Our hands are unfortunately tied until ReadMe (our docs provider) adds supports this. At this time, I am not able to change it because it's not supported.
Απάντηση από τον/την AlexanderYTaylor
στις 14 Φεβρουάριος 2025 στις 07:44 ΜΜ
Travis is this able to be updated yet?
It would be great to know what fields might be returned as null
Απάντηση από τον/την Travis Bell
στις 14 Φεβρουάριος 2025 στις 10:01 ΜΜ
As far as I know nothing has changed with ReadMe yet.