Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

Update

other than the nullable issue, which is under review, the rest of this question is based on a mistake I made reading the nesting depth of the json result.

Disregard. Deletion is considered.


regarding the 'edit_count' field found on nested answers and comments.

  1. is not actually returned in any results (that I have seen).

    The rest of the issues assume that it will be returned

  2. it is documented only on some nested answer collections and not on others, and not the primary route for the type
  3. questions have no edit_count field, nested or otherwise
  4. it is optional.

Assuming that this field will actually be populated in the future, it would be helpful if it was implemented consistently and if it was not optional. A count field does not typically lend itself to being nullable; either there have been edits or there have not.

Introducing ambiguity to an integer value requires enough client side code as to make the field impractical to use.

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

You're misreading the docs, edit_count present on comments which are sometimes returned with answers. It is not present on the "answer" itself.

The null-ability of edit_count is already on the list for "review in a subsequent version," but will not be changed in v1 for obvious backwards compatibility reasons.

share|improve this answer
    
you are correct. i was reviewing json and misread the nesting depth. –  Sky Sanders Aug 28 '10 at 21:36
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .