Mathew Polzin
|
07402259c4
|
Add ability to specify that a SingleResourceBody should be optional or not (or specifically that its PrimaryResource is nullable or not). add tests. update documentation.
|
2018-12-01 00:36:39 -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
|
04bf96a0cf
|
update linuxmain
|
2018-11-29 20:13:21 -08:00 |
|
Mathew Polzin
|
8668311307
|
better poly proxy tests
|
2018-11-29 20:10:56 -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
|
34a4c8e7fc
|
Add TestLib ability to represent to-one relationships with the values of their IDs.
|
2018-11-29 11:31:17 -08:00 |
|
Mathew Polzin
|
6aeb859c24
|
Remove now deleted test from linuxmain
|
2018-11-28 21:13:47 -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
|
cf47f88a61
|
Add tests to confirm that Entities can safely have computed attributes or relationships.
|
2018-11-28 08:15:57 -08:00 |
|
Mathew Polzin
|
0425e2adcb
|
rename folder in tests
|
2018-11-28 07:50:47 -08:00 |
|
Mathew Polzin
|
d3763ba713
|
Add array literal expressibility for ToManyRelationship
|
2018-11-27 23:59:12 -08:00 |
|
Mathew Polzin
|
9c8b2fbebb
|
Renamed JSONAPIDocument to Document and created a protocol describing a JSONAPI Document.
|
2018-11-27 17:35:13 -08:00 |
|
Mathew Polzin
|
dd5f3b1737
|
Added check for nullable array attributes
|
2018-11-27 13:57:55 -08:00 |
|
Mathew Polzin
|
7d7b3d7f19
|
Update linuxmain
|
2018-11-27 13:34:22 -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
|
59ff145aa8
|
Rename the included Error type.
|
2018-11-27 09:11:13 -08:00 |
|
Mathew Polzin
|
8927938d56
|
Rename URL to JSONAPIURL to avoid conflict with Foundation.URL
|
2018-11-26 18:29:24 -08:00 |
|
Mathew Polzin
|
372e2de721
|
update linuxmain
|
2018-11-25 20:07:47 -08:00 |
|
Mathew Polzin
|
650937dbb9
|
improve test coverage of some JSONAPIDocument accessors.
|
2018-11-25 19:41:10 -08:00 |
|
Mathew Polzin
|
b08cbdb0ae
|
Add some tests around documents with links.
|
2018-11-25 19:12:30 -08:00 |
|