Commit Graph

36 Commits

Author SHA1 Message Date
Mathew Polzin bf842bd781 Remove a couple unneeded Foundation imports that snuck in 2018-11-22 21:35:58 -08:00
Mathew Polzin 7edb631f09 Update documentation 2018-11-22 21:32:44 -08:00
Mathew Polzin 3c5a356b44 Add a couple more tests around metadata. 2018-11-22 21:14:19 -08:00
Mathew Polzin f526963707 Update README and update linuxmain 2018-11-22 21:06:04 -08:00
Mathew Polzin c4032eb351 Added meta data to JSONAPIDocument. Added tests around JSONAPIDocument error finally. Needs a few more tests around metadata. 2018-11-22 21:04:58 -08:00
Mathew Polzin 7a3a1b8b65 Round off CustomStringConvertible implementations to make print output a lot easier to read. 2018-11-20 07:27:28 -08:00
Mathew Polzin b3a4591a5d comment out the rest of the once again relevant playground example 2018-11-18 21:51:22 -08:00
Mathew Polzin 23d057c47b Adding more custom string convertible implementations to reduce the verbosity of printing to terminal. expose JSONAPIDocument.Include so that its constructor can be used. 2018-11-18 21:47:00 -08:00
Mathew Polzin 3327a93df5 Moved Examples.swift into a Playground, added some initialization code required to create entities and documents in code. 2018-11-18 17:47:26 -08:00
Mathew Polzin 713fd2ba3a Add xcode workspace files to git ignore. 2018-11-18 15:53:00 -08:00
Mathew Polzin 072479c160 Move Transformer into its own class and add a Validator protocol based on Transformer 2018-11-18 15:49:06 -08:00
Mathew Polzin 032cf42c08 Add support for encoding JSONAPIDocument and add tests. Fix support for decoding null primary data for single resource document. 0.1 2018-11-16 23:59:49 -08:00
Mathew Polzin 04bd0421cd Added encoding support to Includes and tests 2018-11-16 23:15:25 -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 69faa1b33f Add idea of using KeyPaths to specify includes on a JSONAPIDocument 2018-11-15 23:43:14 -08:00
Mathew Polzin 2ae92cf33f Add a bit more flavor to Examples.swift 2018-11-15 23:35:23 -08:00
Mathew Polzin 1158bb8acd fix typo in readme 2018-11-15 23:05:05 -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