4

Since version 2.1, the answer object has a field called tags. However, sometimes, an empty array or even nothing is returned in this field:

Example with the filter !-*f(6t0Vk01e.

Am I doing something wrong or is this a bug?

3

This is a bug and seems (based on a series of A/B tests) to be linked with the body_markdown property.

That is, if your filter returns the tags array, it works:

"items": [ {
    "tags": [ "batch-file", "cmd" ],
    "answer_id": 42292030
  }, {
    "tags": [ "ios", "arrays", "swift" ],
    "answer_id": 42295110
  },
  etc...


, unless body_markdown is also selected:

"items": [ {
    "tags": [],
    "answer_id": 42295122,
    "body_markdown": "`ExecuteScalar` fetches the first column value of the first row. So, it won't make..."
  }, {
    "tags": [],
    "answer_id": 42294953,
    "body_markdown": "The git revert documentation provides the syntax like\r\n\r\n    git revert [--[no-]..."
  },
  etc.
  • 1
    Thanks! Hope this will be fixed, because I need body_markdown as well :-/ – FelixSFD Feb 17 '17 at 10:42
  • 1
    was same problem (empty tags field) but solved with excluding share_link field from filter – Grundy Dec 2 '18 at 21:56

You must log in to answer this question.

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