openphoto/frontend — Issue #348: Tags should not be empty or null
Author: patricksan
Created: 2011-12-02 21:54:43+00:00
State: open

I have a user in the iOS that request the list of tags:

/tags/list.json.

This is the answer:

```json

{"message":"Tags for the user","code":200,"result":[

{"id":"","extra":"","count":"1"},

{"id":" Mat","extra":"","count":"1"},{"id":"2003","extra":"","count":"1"},{"id":"2010","extra":"","count":"21"},{"id":"2011","extra":"","count":"14"},{"id":"August","extra":"","count":"2"},
{"id":"backgrounds","extra":"","count":"24"},{"id":"December","extra":"","count":"14"},
{"id":"July","extra":"","count":"2"},{"id":"June","extra":"","count":"1"},{"id":"M\u00e5seskj\u00e6ret","extra":"","count":"9"},{"id":"October","extra":"","count":"16"},{"id":"September","extra":"","count":"1"},

{"id":null,"extra":"","count":"1"}]}

```

I see two problems
1. The first id is empty. That should not exist for tags
2. The last id is null. That should also not exist for tags. Also related to #346

There is already a validation in the iOS version.