Mathew Polzin
e0e6723222
Make Xcode Beta happy by explicitly creating optionals where they used to be implied.
2019-08-02 07:27:17 -07:00
Mathew Polzin
60cd515fd6
just filling in a couple small holes in test coverage
2019-07-30 17:44:06 -07:00
Janko Luin
5b56d596e2
Merge remote-tracking branch 'upstream/master' into optional-relationships
2019-07-03 08:30:17 +02:00
Mathew Polzin
e820f34253
change podspec version in anticipation of next release
2019-07-02 18:12:29 -07:00
Janko Luin
fc78958f76
Allow omitting relationships if all are optional
...
When all relationships are optional, the `relationships` key is also
optional and not required in the structure.
I'm not super happy with importing Foundation and creating new objects
any time a key is missing, but ultimately none of my attempts at
conditional generics worked out for me.
2019-07-02 17:02:55 +02:00
Mathew Polzin
e09e3cd8ac
Finish renaming all things 'Entity' to 'ResourceObject'
2019-06-12 19:56:33 -07:00
Mathew Polzin
2bb238b092
Renamed EntityProxyDescription to ResourceObjectProxyDescription and EntityDescription to ResourceObjectDescription.
2019-06-12 19:07:21 -07:00
Mathew Polzin
8726bcc9fa
Update all references to JSONAPITestLib to reflect renaming
2019-01-13 18:35:20 -08:00
Mathew Polzin
c04d3301b6
Add Meta-Relationship access.
2019-01-08 21:23:17 -08:00
Mathew Polzin
1d6e5d3810
Added Meta-Attribute support and documentation
2019-01-02 22:49:38 -08:00
Mathew Polzin
072b081ac3
Breaking - Rename static var type: String to static var jsonType:String to avoid unnecessary conflict with Swift.type(of:)
2019-01-02 19:35:50 -08:00
Mathew Polzin
61074ecc69
Add methods that make it easy to copy an entity with a new ID or copy an unidentified entity and give it an ID
2018-12-22 13:41:34 -08:00
Mathew Polzin
4dbcff6023
Add another way to initialize a nullable attribute to the tests
2018-12-22 13:10:05 -08:00
Mathew Polzin
f38399a1d6
Add a bit of entity structure testing
2018-12-21 07:50:32 -08:00
Mathew Polzin
28f664326d
Added a couple of tests
2018-12-12 21:05:07 -08:00
Mathew Polzin
dfdc266645
remove a bunch of convenience initializers that appeared to be giving the compiler some strife
2018-12-10 22:45:28 -08:00
Mathew Polzin
8f279ce191
Add tests around nullable attributes and remove unnecessary encoding code
2018-12-08 20:04:11 -08:00
Mathew Polzin
c9d388579f
Made it much more convenient to work with Non-EntityType relationships. Discovered and fixed a bug where nullable relationships were encoded incorrectly.
2018-12-08 19:48:10 -08:00
Mathew Polzin
41a2a01788
Added support for relationship operator ~> to optional relationships
2018-12-07 20:59:39 -08:00
Mathew Polzin
fad45203dd
small refactor to consider ToOneRelationship with no meta or links to be even more synonymous with 'pointer'
2018-12-05 22:42:34 -08:00
Mathew Polzin
1f83216b03
Adding a few tests here and there
2018-12-05 18:31:53 -08:00
Mathew Polzin
6e6973c170
Adding test coverage for Relationship Meta and Links
2018-12-05 18:12:00 -08:00
Mathew Polzin
35d6cbb440
Add support for Relationship Meta and Links (untested)
2018-12-05 09:14:38 -08:00
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