All of the fields returned in the response are Strings, including year, imdbRating, and Metascore. This makes sorting more difficult, because they need to be deserialized, and then they also need to be transformed. Nullable fields should also not be Strings with "N/A" for null values. Proposed changes:
year -> Int
Released (Date) -> Long
imdbRating -> Float
imdbVotes -> Int
Metascore -> Int
DVD (Date) -> Long
BoxOffice -> Int (assuming USD or another specific currency)
All of the fields returned in the response are
String
s, includingyear
,imdbRating
, andMetascore
. This makes sorting more difficult, because they need to be deserialized, and then they also need to be transformed. Nullable fields should also not beString
s with"N/A"
fornull
values. Proposed changes:year
->Int
Released
(Date) ->Long
imdbRating
->Float
imdbVotes
->Int
Metascore
->Int
DVD
(Date) ->Long
BoxOffice
->Int
(assuming USD or another specific currency)Production
->String?
("N/A"
->null
Website
->String?
("N/A"
->null
Response
->Boolean
("True"
->true
)Rating.Value
->Float
, ie->