summaryrefslogtreecommitdiff
path: root/src/data/ValidatingJsonDeserializer.java
AgeCommit message (Collapse)AuthorFilesLines
2014-05-10Centralize Gson creation and registrationPeter Wu1-5/+17
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 Wu1-5/+43
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 Wu1-1/+1
2014-05-09Entities can be missing, user.place is not a stringPeter Wu1-2/+3
* 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 validation annotations, ...Peter Wu1-10/+28
* 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 Wu1-0/+72