Mathew Polzin
|
3468cb555a
|
Remove Result dependency in favor of a super stripped down internally scoped Result enum. This won't interfere with other Result libraries and I was not exposing the Result anyway.
|
2018-12-05 22:02:59 -08:00 |
|
Mathew Polzin
|
1f83216b03
|
Adding a few tests here and there
|
2018-12-05 18:31:53 -08:00 |
|
Mathew Polzin
|
35d6cbb440
|
Add support for Relationship Meta and Links (untested)
|
2018-12-05 09:14:38 -08:00 |
|
Mathew Polzin
|
d667e91a6a
|
Add some missing initializers for Entity and fix Playground sources.
|
2018-12-03 19:08:09 -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
|
689517c633
|
Add ability to differentiate between things that _act_ like Entities and things that _are_ entities in the sense that the latter are persisted between client and server but the former is just a clientside convenience.
|
2018-11-29 20:03:44 -08:00 |
|
Mathew Polzin
|
65b80ee0eb
|
Add ReversibleTransformer and tests. remove unneeded check in Entity.check().
|
2018-11-29 18:39:59 -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
|
a628992fcb
|
Make Attribute a Functor to make computed attributes easier to write.
|
2018-11-28 09:09:23 -08:00 |
|
Mathew Polzin
|
d3763ba713
|
Add array literal expressibility for ToManyRelationship
|
2018-11-27 23:59:12 -08:00 |
|
Mathew Polzin
|
fcc1796731
|
Expose Entity properties on EntityType protocol.
|
2018-11-27 18:58:48 -08:00 |
|
Mathew Polzin
|
921bcef05d
|
Ids are now Hashable
|
2018-11-27 18:39:57 -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
|
a55a4cbed0
|
Added test library, attribute literal expressibility, and tests
|
2018-11-27 10:54:51 -08:00 |
|
Mathew Polzin
|
3d8d10584b
|
Add typealiases to make accessing Entity Relationships and Attributes types more convenient
|
2018-11-26 22:27:10 -08:00 |
|
Mathew Polzin
|
c30a2615f2
|
Added links to document but currently untested
|
2018-11-25 00:02:37 -08:00 |
|
Mathew Polzin
|
8114132189
|
Add attribute validation tests
|
2018-11-23 20:21:00 -08:00 |
|
Mathew Polzin
|
b61a41c99b
|
Allow EntityType and Poly to be PrimaryResource in JSONAPIDocument
|
2018-11-23 19:33:06 -08:00 |
|
Mathew Polzin
|
16b83ddbef
|
lots of tests of Poly
|
2018-11-23 19:09:53 -08:00 |
|
Mathew Polzin
|
2563edf419
|
Add subscript access to Poly types. Add empty test class for Poly type. Remove unneeded Foundation import. Small README change to read more clearly.
|
2018-11-23 08:49:55 -08:00 |
|
Mathew Polzin
|
98bb64268f
|
Split Include1 through Include6 off to a new file and a type I am calling Poly. This new type will allow me to use the same structures to represent polymorphic relationships.
|
2018-11-22 22:52:21 -08:00 |
|
Mathew Polzin
|
bf842bd781
|
Remove a couple unneeded Foundation imports that snuck in
|
2018-11-22 21:35:58 -08:00 |
|