Web API: issue number is omitted when it is zero.

Avatar image for cbanack
cbanack

124

Forum Posts

199

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

When accessing the "issue" resource using the web API, the "issue_number" field is now empty when the comic book in question has an issue number of zero. For example (insert your own api key):

http://www.comicvine.com/api/issue/201543/?api_key=XXX&format=xml&field_list=issue_number

Note that the issue number is: <issue_number/>

This makes it look like no issue number has been entered.

Instead, it should be (and used to be): <issue_number>0</issue_number>

(Wild guess: is your backend coded in python? If so, maybe there's a bug somewhere where someone is testing if x is None by doing "if not x then..." and they've forgotten that this expression will evaluate to true if x is None OR if x is 0...)

Avatar image for wmwadeii
wmwadeii

3327

Forum Posts

266306

Wiki Points

0

Followers

Reviews: 2261

User Lists: 3

cbanack I know you do the ComicRack API, just an FYI the site does support issue numbers with letters and even 1/2 now. Also I know any issue that had a decimel and a few others rounded during the conversion. I know editors are working on those this weekend.

Avatar image for JamesSpiring
JamesSpiring

998

Forum Posts

46008

Wiki Points

0

Followers

Reviews: 0

User Lists: 2

#3  Edited By JamesSpiring

I for one was glad to see that issue numbers now show up on the volume page when the number is zero.