François Pradel
955f4f234d
Add support for polymorphic includes
2018-08-31 19:17:45 -07:00
Igor Khodyrev
e3c45d9b1b
Fix weak entities case (id is not meaningful attribute) with include.
2018-08-22 20:05:51 -07:00
Shishir Kakaraddi
a5414c6b8f
Merge pull request #280 from manojmj92/add_meta
...
Introduce the ability to add `meta` tag for every resource in the collection
2018-07-23 13:30:39 -07:00
Manoj M J
6d03db3a0c
Merge branch 'dev' into master
2018-07-21 10:06:56 +05:30
Manoj M J
099eb606bd
Merge branch 'dev' into add_meta
2018-07-21 09:39:33 +05:30
Manoj M J
dd71bc15d6
Introduce the ability to add meta tag for every resource in the collection
2018-07-20 10:33:27 +05:30
Trevor Hinesley
dfcbe263fb
Merge branch 'master' into params-in-nested-includes
2018-07-19 09:58:25 -05:00
Trevor Hinesley
07b6e614ac
Params are now passed to nested includes
2018-07-19 09:57:22 -05:00
Manoj M J
9c659839e4
Evaluate ids via the specified ‘id_method_name’ when relationships are evaluated via a block
2018-07-19 15:40:20 +05:30
Erol
e2bf5411a2
Set the record type for inherited serializers
2018-07-16 21:10:10 -07:00
Erol
e683bbfb78
Update spec with included documents with no explicitly given fields
2018-07-16 21:10:10 -07:00
Erol
a363c90bfb
Allow the serializer to return sparse fieldsets
2018-07-16 21:10:10 -07:00
Erol
e05193fb5e
Add spec for proc methods with optional arguments
2018-07-16 21:10:10 -07:00
Erol
449c1bf05f
Allow passing procs with variable arguments when declaring an attribute
2018-07-16 21:10:10 -07:00
Oleksiy Babich
ecb92f07f5
add is_collection parameter to force corresponding serialization ( #239 )
...
* add is_collection parameter to force corresponding serialization
* add documentation for is_collection purpose, behavior
and notes re. default autodetect logic
2018-07-03 19:35:06 -07:00
Kyle Reeves
01477e9c5b
fix relationship id_hash method
2018-07-03 19:33:34 -07:00
Kyle Reeves
d47b74f71f
all tests are passing, but still need to write tests for relationship class
2018-07-03 19:33:34 -07:00
Trevor Hinesley
f864099761
Conditional relationships should be removed from included when proc evaluates to false
2018-07-03 19:33:34 -07:00
Kyle Reeves
0b70657a41
update test for conditional relationships
2018-07-03 19:33:34 -07:00
Kyle Reeves
5558dcd703
allow conditional relationships
2018-07-03 19:33:34 -07:00
Darren Johnson
4a333d7276
Set type value when setting key transform
2018-06-21 18:40:24 -07:00
Trevor Hinesley
5c820695b3
Split attribute serialization into its own class
2018-06-21 18:38:42 -07:00
Trevor Hinesley
bad004fd42
Allow conditional attributes
2018-06-21 18:38:42 -07:00
homer
44d5e0f9c5
Fix serialization for nested nil includes with block
2018-05-31 17:16:54 -07:00
Shishir Kakaraddi
cd1bc0968e
dont create a object for a has one relationship unnecessarily just to fetch id
2018-05-20 15:11:07 -07:00
Shishir Kakaraddi
ea5296ac25
making object level links similar to attributes
2018-05-20 15:08:47 -07:00
Jodi Showers
74f27ccdf0
Links within data ( #161 )
2018-05-20 13:14:46 -07:00
Ryan O'Donnell
b090391551
Fix serialization for nested nil includes
2018-05-18 19:06:16 -07:00
Les Fletcher
077817ecec
fix skylight normalizers issue
2018-05-16 18:43:05 -07:00
Shishir Kakaraddi
3fb975602b
fixes some unnecessary performance test failures
2018-05-14 19:27:50 -07:00
Shishir Kakaraddi
00d3aa4997
adding NotImplementedError when trying to include polymorphic relationships
2018-05-10 23:22:21 -07:00
Jodi Showers
3ebf34928c
Serialize nested includes ( #152 )
2018-05-10 21:17:32 -07:00
Shishir Kakaraddi
63f905ab36
adds params to relatinoship blocks and tests
2018-05-08 22:11:22 -07:00
Shuhei Kitagawa
5b64e90956
Add tests for block relationship
2018-05-06 10:26:38 -07:00
Shishir Kakaraddi
4523508c5b
inherits attributes, relationships and other settings from parent serializer
2018-05-05 19:12:45 -07:00
Zino
faa8fe6caf
Use string for serializer name
2018-05-02 10:22:22 -07:00
Shuhei Kitagawa
5d8e1ce9e7
Refactor tests for key_transform method
2018-05-01 23:28:07 -07:00
Brandon Buck
a585497161
Add in options[:scope] and receiving scope in attribute blocks ( #153 )
2018-05-01 09:58:01 -07:00
Shuhei Kitagawa
fb7d01368a
Integrate tests for #set_id and #attribute to object_serializer_class_methods_spec
2018-03-29 17:22:51 -07:00
Dmitriy Ivliev
1196db46e5
add exception for missing id method
2018-03-26 22:38:14 -07:00
Dmitriy Ivliev
c2e4c01bf1
fix behaviour for struct without id
2018-03-26 22:38:14 -07:00
Shuhei Kitagawa
cdfac8743d
Refactor object serializer class methods spec ( #134 )
...
* Add object_serializer_class_methods_examples
* Change to require spec/shared/examples in every spec files
* Refactor object_serializer_class_methods_spec
2018-03-26 22:16:37 -07:00
Shuhei Kitagawa
4f3a903e64
Remove redundant fetch from ids_hash_from_record_and_relationship
2018-03-26 22:12:07 -07:00
Shishir Kakaraddi
e486a962e1
merge with master
2018-03-25 12:09:15 -07:00
Shuhei Kitagawa
b18da3da59
Remove unused variable from object_serializer_class_methods_spec
2018-03-21 07:39:55 -07:00
Ihor Dotsenko
270276d264
Fix bug with chaining rescues of FastJsonapi::MultiToJson::Result
2018-03-19 13:13:27 -07:00
sojan v jose
b387f94a13
Fix typo in the readme sample command ( #131 )
...
fix typo in the readme sample command
2018-03-19 12:53:24 -07:00
mnauage
ecd7bbc793
links key support
2018-03-18 22:31:02 -07:00
Shishir Kakaraddi
cf86cd871e
merging with release-1.1
2018-03-18 09:37:54 -07:00
Shuhei Kitagawa
a15232b47f
Add tests for set_id method
2018-03-18 08:29:13 -07:00