Aren Patel
a70d58d3c8
Support pointers as attrs ( #40 )
...
* add support to unmarshal attributes to struct field that are ptr types
* Spacing, addressed all the linter warnings, comments to describe errors, cleanup, left a TODO note to resolve the Error messaging.
2016-07-22 18:34:38 -07:00
Sam Woodard
3b09fe9cb9
fix the build
2016-07-15 13:40:23 -07:00
Sam Woodard
81169d52b6
Merge pull request #32 from lyoung-uber/id
...
Update to reflect official Golang naming specifications
2016-07-15 13:32:39 -07:00
Aren Patel
0c87c2c473
Added the MarshalOnePayloadWithoutIncluded method for marshaling sing… ( #34 )
...
* Added the MarshalOnePayloadWithoutIncluded method for marshaling single objects and their relations without actually populating the "included" key with the full related object.
* Completed method description.
* Added a test to ensure that the library is capable of Unmarshmaling a payload where the One object in the payload had relationships but did not include them via "included"
2016-07-13 18:32:04 -07:00
Luke Young
57819f3b34
Follow Golang naming specifications
2016-07-05 20:32:15 -05:00
Sam Woodard
d4c1f40f1d
optimizations, refactors
2016-01-05 13:13:24 -08:00
Sam Woodard
57cb7c9f3f
Merge remote-tracking branch 'origin/master' into client-ids
...
* origin/master:
Fix issue #10 to avoid panics with invalid JSON
2015-10-12 11:08:23 -07:00
Sam Woodard
d9645f7f7e
major code simplification while making client ids work
2015-09-17 15:55:53 -07:00
Sam Woodard
10e0987b5d
start supporting client ids
2015-09-10 15:55:51 -07:00
Christian Klotz
b11e9985b4
Fix issue #10 to avoid panics with invalid JSON
2015-08-29 18:29:58 +01:00
Sam Woodard
ca0304f527
bug fix: don't forget some included nodes
2015-07-12 07:42:52 -07:00
Sam Woodard
a6c9e05c33
marshal embedded payload now takes io rather than return struct
2015-07-10 17:34:04 -07:00
Sam Woodard
9b8432d9d9
bug fix: was missing objects in sideload
2015-07-10 14:31:26 -07:00
Sam Woodard
b112561a72
support unmarshal sideloaded records for two-way function
2015-07-10 11:41:54 -07:00
Sam Woodard
0becfab81d
remove 'JsonApi' everywhere, since we're already in a pkg
2015-07-10 09:07:12 -07:00
Sam Woodard
a228611aa0
skip field if attr is not in the hash
2015-07-09 12:27:03 -07:00
Sam Woodard
c887cfc585
Add test for set id
2015-07-08 13:11:03 -07:00
Sam Woodard
7430fd0b0c
dry off, error if tag does not contain two arguments
2015-07-08 11:49:36 -07:00
Sam Woodard
8de6c952ef
test request relationships, nested relationships
2015-07-08 09:35:20 -07:00
Sam Woodard
fdc14b7be4
handle embedded records for requests
2015-07-07 15:46:20 -07:00
Sam Woodard
81bf23f93f
support marshalling a list of models
2015-07-07 09:52:38 -07:00
Sam Woodard
99d5ee6428
break up tests
2015-07-06 14:41:53 -07:00
Sam Woodard
f4c5ee491c
switch to using unix timestamps in payloads
2015-07-06 14:35:17 -07:00
Sam Woodard
8be7afb2fe
deserialize request id and attrs, including parsing time
2015-07-06 13:40:43 -07:00