summaryrefslogtreecommitdiff
path: root/src/data
AgeCommit message (Collapse)AuthorFilesLines
2014-05-11More data sanization (decode HTML entities, location fix)Peter Wu1-0/+6
2014-05-10More nullable annotations, print tweets for parse errors tooPeter Wu2-0/+3
Nullable is based on Twitter platform (users, tweets) documentation. Now the line number is also printed.
2014-05-10Convert long to int where possible, fix retweetidPeter Wu2-4/+4
If there is no retweet, the retweetid must really be NULL, not 0. In order to better match the database, convert some types to integers too.
2014-05-10user: Add verified, description, fix coordinates typePeter Wu1-0/+2
2014-05-10Convert String to DateTime (for created_at)Peter Wu3-3/+9
Extra efforts are done to keep the timezone information.
2014-05-10Centralize Gson creation and registrationPeter Wu3-9/+46
2014-05-10Check for errors if a validation error occurredPeter Wu1-3/+7
This gives more helpful messages when the primitive does not match (object or array instead of string).
2014-05-10Coordinates is an object with an arrayPeter Wu2-6/+52
Ensure that the array is of a fixed length, add tests to check for that.
2014-05-10Verify that an array and object are really array (and objects)Peter Wu1-5/+7
2014-05-10Detect wrong type for stringPeter Wu1-0/+6
2014-05-10Add validator debugger where the wrong type is returnedPeter Wu2-1/+42
2014-05-10user.time_zone can be null tooPeter Wu1-0/+1
2014-05-09Entities can be missing, user.place is not a stringPeter Wu3-3/+19
* User: place is not a string but a Place object. * User: entities is nullable. * Tweet: in_reply_to_user_id, coordinates is nullable. * ValidatingJsonDeserializer: Treat null values as missing fields. * ValidatingJsonDeserializerTest: Test for null values.
2014-05-09Trace object path for JSON validation errors.Peter Wu1-11/+10
2014-05-09Remove debug prints, add commentsPeter Wu1-1/+3
2014-05-09Add missing annotation for retweeted_status, more testsPeter Wu1-0/+1
2014-05-09Add missing validation annotations, ...Peter Wu3-16/+59
* Add missing Validator annotations for User. * Add entities and url properties for user. * Properly do a recursive check if an Validator annotation is present.
2014-05-08Add json containers for Tweet and User objectsPeter Wu3-0/+147