The Movie Database-ondersteuning

Hi!

What are the default values returned by the API for empty fields?

As I understand the default value depends on the field type. So for integers it is '0', for strings it is 'null', and for ids it is '""' (epmty string). For example:

{
  "budget" => 0,
  "imdb_id" => "",
  "overview" => nil
}

Is it correct? Is there any documentation for this?

2 antwoorden (op pagina 1 van 1)

Jump to last post

Hi Kostya,

There isn't any documentation on this. There's some overviews that will be an empty string as opposed to a nil value.

I've created a new ticket for this and will look at it when I get some time.

Cheers.

Thanks!

Film of tv-serie niet gevonden? Meld je aan om deze toe te voegen.

Wereldwijd

s focus op zoekbalk
p open profielmenu
esc sluit een open venster
? open sneltoetsen venster

Op media pagina's

b ga terug (of ga naar bovenliggend item)
e ga naar beweken

Op tv-seizoenspagina's

(rechter pijl) ga naar volgende seizoen
(linker pijl) ga naar vorig seizoen

Op pagina's met tv-series

(rechter pijl) ga naar volgende aflevering
(linker pijl) ga naar vorige aflevering

Op alle afbeeldingspagina's

a open venster afbeelding toevoegen

Op alle bewerkte pagina's

t open vertaalmenu
ctrl+ s verstuur formulier

Op discussiepagina's

n start nieuwe discussie
w Verander kijk status
p privé of openbaar
c schakelen sluiten/openen
a open activiteit
r beantwoord discussie
l ga naar laatste antwoord
ctrl+ enter verstuur uw bericht
(rechter pijl) volgende pagina
(linker pijl) vorige pagina

Instellingen

Want to rate or add this item to a list?

Inloggen