Mathew Polzin
|
3a8237ec0f
|
Add test coverage for Meta and Links on Entity
|
2018-12-03 18:45:07 -08:00 |
|
Mathew Polzin
|
8aa887b527
|
Add metadata and links to resource objects (i.e. Entity). untested.
|
2018-12-02 22:57:59 -08:00 |
|
Mathew Polzin
|
8274ecb523
|
Add tests confirming that initializers work as expected without using any TestLib conveniences
|
2018-11-30 23:56:18 -08:00 |
|
Mathew Polzin
|
163ac94c51
|
I did some more type wrangling to finally get the Id type to specialize on Entity rather than EntityDescription. The compiler gets into trouble depending on which of a few semantically identical routes are taken, but I finally stumbled upon the correct combination of protocols and extensions to get the job done. this was always the ideal outcome, but I was not sure the Swift compiler would allow it.
|
2018-11-28 21:13:07 -08:00 |
|
Mathew Polzin
|
aedd5dc29b
|
Add Entity validation via a function in JSONAPITestLib.
|
2018-11-27 13:33:55 -08:00 |
|
Mathew Polzin
|
dcabafd583
|
Add a playground page to show off JSONAPITestLib and add nil literal expressibility to ToOneRelationship
|
2018-11-27 11:45:15 -08:00 |
|
Mathew Polzin
|
9df9efc2dc
|
rename NoRelatives to NoRelationships to better pair with NoAttributes and NoLinks
|
2018-11-27 11:08:53 -08:00 |
|
Mathew Polzin
|
8114132189
|
Add attribute validation tests
|
2018-11-23 20:21:00 -08:00 |
|
Mathew Polzin
|
9802efd917
|
Add encoding to ResourceBody and test it
|
2018-11-16 18:21:37 -08:00 |
|
Mathew Polzin
|
696e434caa
|
Mirror all decoding entity tests with encoding tests
|
2018-11-16 09:10:05 -08:00 |
|
Mathew Polzin
|
7bb5c9ac9f
|
Add missing unidentified decoding tests
|
2018-11-16 08:23:36 -08:00 |
|
Mathew Polzin
|
7dce7b2299
|
Remove Id from EntityDescription, reducing the amount of repetetive and clunky boilerplate and allowing one simple typealias to remove Ids from consideration entirely when creating new Entity types.
|
2018-11-15 23:02:58 -08:00 |
|
Mathew Polzin
|
971e486cb1
|
update everything except for IdType to operate off of EntityType rather than EntityDescription. This feels much more natural.
|
2018-11-15 21:05:07 -08:00 |
|
Mathew Polzin
|
ea85593655
|
Rename EntityType generics and associated types to EntityDescription
|
2018-11-15 17:24:17 -08:00 |
|
Mathew Polzin
|
ee364216bb
|
allow EntityDescription to decode nullable relationships
|
2018-11-15 17:16:16 -08:00 |
|
Mathew Polzin
|
bf44c2fcdd
|
Prepping for ToOneRelationships that have optional related types for use in situations where null is an acceptable relationship value.
|
2018-11-14 23:39:12 -08:00 |
|
Mathew Polzin
|
fd82d5d7de
|
Add ability to specify an Attribute needs to be transformed once it has been decoded.
|
2018-11-14 08:38:43 -08:00 |
|
Mathew Polzin
|
805ef4debe
|
Support both attributes whose keys can be omitted and attributes whose values can be null.
|
2018-11-13 21:34:23 -08:00 |
|
Mathew Polzin
|
ec37902819
|
Add some more documentation, remove unneded Foundation imports.
|
2018-11-13 01:08:23 -08:00 |
|
Mathew Polzin
|
2179f23dc7
|
Some cleanup and added documentation.
|
2018-11-12 22:24:54 -08:00 |
|
Mathew Polzin
|
34c82b135f
|
Initial commit of files taken from a package started as part of another project.
|
2018-11-12 20:36:03 -08:00 |
|