Mathew Polzin
c8fbc09582
Remove Playground page that used the OpenAPI support that has now moved into its own repository.
2019-01-30 18:34:52 -08:00
Mathew Polzin
a88bb77bd0
update linuxmain
2019-01-30 18:00:51 -08:00
Mathew Polzin
247848e788
Update README
2019-01-30 18:00:27 -08:00
Mathew Polzin
7adbdb4505
Move JSONAPIArbitrary and JSONAPIOpenAPI into their own packages.
2019-01-30 17:54:26 -08:00
Mathew Polzin
ea663bb229
Move Sampleable into its own Package.
2019-01-29 00:44:31 -08:00
Mathew Polzin
f48c385f99
super minor code doc tweak
2019-01-28 23:51:29 -08:00
Mathew Polzin
c96bfadd82
Had not updated linuxmain in a while. pretty sure I'll have problems building on Linux at least with the stuff going on in JSONAPI+OpenAPI.
2019-01-28 23:46:56 -08:00
Mathew Polzin
88be701062
Add OpenAPI support for TransformedAttributes
2019-01-28 23:45:28 -08:00
Mathew Polzin
1e85e1d2a3
fix open API playground.
2019-01-27 22:55:32 -08:00
Mathew Polzin
11a7727ac9
Fix Include OpenAPI support. Fix bug with single include being considered 'OneOf' even though that is an overcomplication of the schema. Add tests for single include type and two include types on document
2019-01-27 22:47:01 -08:00
Mathew Polzin
e8bfbc881b
Added a couple of test cases for JSONDocuments
2019-01-27 22:24:13 -08:00
Mathew Polzin
af757a2fac
Add emphasis to README line.
2019-01-27 21:46:22 -08:00
Mathew Polzin
84955872f8
Finish writing Date Attribute test cases and add support for Optional Date OpenAPI Node guesses.
2019-01-27 21:39:18 -08:00
Mathew Polzin
cb2800abd4
Add support for RequestBody on an OpenAPI Operation.
2019-01-27 13:57:04 -08:00
Mathew Polzin
85d5fef3c8
Fix bug where some references were correctly encoded as objects and others were just encoded as strings
2019-01-27 13:22:18 -08:00
Mathew Polzin
e4ef61fd56
bugfix: OpenAPI path components should begin with a slash.
2019-01-27 12:46:13 -08:00
Mathew Polzin
75ec4f156e
Fix a third dictionary-as-array bug
2019-01-26 20:04:11 -08:00
Mathew Polzin
b45fc73188
Merge pull request #15 from mattpolzin/feature/OpenAPISchema
...
Feature/open api schema
2019-01-26 19:52:15 -08:00
Mathew Polzin
3b73dc9989
Fix super shitty bug caused by Apples implementation of Dictionary's conformance to Encodable sometimes encoding the dictionary as an array.
2019-01-26 19:50:20 -08:00
Mathew Polzin
b2c81026f4
remove 'id' from Unidentified Entity OpenAPI node.
2019-01-26 18:55:47 -08:00
Mathew Polzin
8d057b4398
Merge pull request #14 from mattpolzin/feature/OpenAPISchema
...
Just enough OpenAPI Schema stuff to be dangerous
2019-01-25 18:25:19 -08:00
Mathew Polzin
c8421cdd58
just throw that json extension on the filename to make everything super real
2019-01-25 18:20:04 -08:00
Mathew Polzin
cde10a8491
Finish implementing remaining first wave of encodable conformances for OpenAPI
2019-01-25 18:17:58 -08:00
Mathew Polzin
ad05d3908a
Add a simple test OpenAPISchema and start to tweak things to get it workable.
2019-01-25 12:49:59 -08:00
Mathew Polzin
23b2b2e04f
merge w/ master
2019-01-25 12:01:01 -08:00
Mathew Polzin
2988503d7d
Add Sampleable conformance to Unidentified. Rename file slightly.
2019-01-25 11:59:05 -08:00
Mathew Polzin
5ea83b07c1
Hopefully remove some ambiguity.
2019-01-24 19:09:46 -08:00
Mathew Polzin
2b59f54067
Fix bug causing a supplied encoder to be used for generating an example but not for helping determine the correct Date formatting.
2019-01-24 17:47:44 -08:00
Mathew Polzin
58a7c82436
Restructure files a bit. Make Date handling relatively robust compared to my first pass at it. Make the failure to construct a generic open API node type throw an error rather than silently omit the node.
2019-01-24 17:25:34 -08:00
Mathew Polzin
dc30cb3b9e
Make Attribute Sampleable where its RawValue is Sampleable. Allow Sampleable things to provide a best guess for their node type based on the result of encoding and then deserializing them.
2019-01-24 00:47:24 -08:00
Mathew Polzin
7045373708
update and make sure all Playground pages run
2019-01-23 23:24:53 -08:00
Mathew Polzin
952fe8ba7e
Remove encoder requirement to almost all Open API Node constructors. Made a new protocol for the few places where an encoder did need to be passed in.
2019-01-23 23:21:16 -08:00
Mathew Polzin
951c04ad44
Add Sampleable conformances. Make blanket JSONEncoder change I am not happy with; will try to walk back requirement that encoder gets passed to all functions creating OpenAPI Nodes
2019-01-23 22:21:27 -08:00
Mathew Polzin
57df6b147e
Add Sampleable conformance to UnknownJSONAPIError. Add Sampleable conformance to all Include types and the Includes type.
2019-01-23 11:52:16 -08:00
Mathew Polzin
a88844fe5e
Switch to Poly 1.0.0 (same commit as previously used but by version rather than branch)
2019-01-23 00:34:14 -08:00
Mathew Polzin
d1cf19f9fe
Neck deep in stubbing out OpenAPI types
2019-01-22 22:14:36 -08:00
Mathew Polzin
59835fbe11
Add JSON Reference and OpenAPIComponents (initially just with schemas)
2019-01-22 16:08:47 -08:00
Mathew Polzin
850a713dcb
Merge pull request #13 from mattpolzin/feature/OpenAPISchema
...
Add Include support to OpenAPI schema of JSONAPI Document.
2019-01-22 12:01:40 -08:00
Mathew Polzin
e3c637a41e
update README and add associated type labels to patterns for clarity
2019-01-22 11:57:18 -08:00
Mathew Polzin
9cbc626410
Add Include support to OpenAPI schema of JSONAPI Document.
2019-01-22 11:53:32 -08:00
Mathew Polzin
6dd14daf53
Merge pull request #12 from mattpolzin/feature/OpenAPISchema
...
Testing, Documentation, more Arbitrary conformance, "example" support.
2019-01-22 08:21:22 -08:00
Mathew Polzin
744e08acf4
Update linuxmain
2019-01-21 23:00:13 -08:00
Mathew Polzin
5da4a963d4
Update README and code documentation slightly
2019-01-21 22:50:19 -08:00
Mathew Polzin
5433dddc81
Add support for 'const' via OpenAPI 3.0 workaround suggested by others: Use 'enum' with one value. Add Sampleable support for requesting samples representing 'success' and 'failure' if available.
2019-01-21 22:47:03 -08:00
Mathew Polzin
95f9d8084d
Add Arbitrary conformance for UnknownJSONAPIError. Fix weird encoding exception that I cannot quite figure out or explain at the moment.
2019-01-21 21:56:33 -08:00
Mathew Polzin
d6911f170c
Add example to JSONNode
2019-01-21 20:57:54 -08:00
Mathew Polzin
9972d13a4e
Document zip(with:) on optionals
2019-01-21 15:37:41 -08:00
Mathew Polzin
4dc63167d6
Rename a couple of files
2019-01-21 15:35:54 -08:00
Mathew Polzin
845d085455
Fill out a fair bit of OpenAPI Entity testing
2019-01-21 15:32:38 -08:00
Mathew Polzin
45eb7d06bd
Merge branch 'master' into feature/OpenAPISchema
2019-01-21 13:18:59 -08:00
Mathew Polzin
6ce962cec9
Merge pull request #11 from mattpolzin/feature/Arbitrary
...
Add Arbitrary support for the rest of JSONAPI's key types.
2019-01-21 13:16:46 -08:00
Mathew Polzin
477dae0a73
Add Arbitrary support for the rest of JSONAPI's key types.
2019-01-21 13:13:09 -08:00
Mathew Polzin
4afe4cfb31
Rename first JSONAPI+Testing header to Testing to remove conflict in GitHub Markdown links.
2019-01-21 11:52:02 -08:00
Mathew Polzin
65144d27ae
Merge pull request #10 from mattpolzin/feature/OpenAPISchema
...
Feature/open api schema
2019-01-21 11:50:02 -08:00
Mathew Polzin
1ec4b21c34
Add missing case in Sampleable generic OpenAPINode implementation. Add info on new auxiliary frameworks to the README.
2019-01-20 19:18:10 -08:00
Mathew Polzin
15e13e2cc7
Remove unused error and add a bit of code documentation
2019-01-20 18:54:37 -08:00
Mathew Polzin
1d8ceef317
Update README, add a bit more code documentation
2019-01-20 18:52:21 -08:00
Mathew Polzin
e546614c15
merge with Arbitrary branch
2019-01-20 18:41:54 -08:00
Mathew Polzin
8939d637d4
Add placeholder test to arbitrary test target.
2019-01-20 18:34:24 -08:00
Mathew Polzin
e3b005b89a
Update README
2019-01-20 18:25:28 -08:00
Mathew Polzin
2de6580519
Add some tests around Attribute OpenAPI descriptions
2019-01-20 18:18:35 -08:00
Mathew Polzin
875d938b95
Add id and type properties to Entity OpenAPI Schema
2019-01-20 16:19:26 -08:00
Mathew Polzin
1ed34b00dc
Add todos for Entity Id and type. Add example usage of OpenAPI entity schema support in Playground
2019-01-20 16:10:31 -08:00
Mathew Polzin
531a7f35bd
Cleanup and a bit of documentation
2019-01-20 15:50:46 -08:00
Mathew Polzin
dc42ec27fc
Not crazy about how I got there, but now it is relatively easy to print arbitrary enum's allCases as the list of possible values in the format specced out by OpenAPI.
2019-01-20 15:39:54 -08:00
Mathew Polzin
cf746e182f
currently in a pretty broken state with support for enumerations being turned into allowed values via reflection. I think I am going to have to give up type safety if I want to use reflection and keep things open ended
2019-01-19 15:30:09 -08:00
Mathew Polzin
52d2e9819d
Update README project status to include OpenAPI and Arbitrary work.
2019-01-15 09:40:49 -08:00
Mathew Polzin
81b78cd749
Add more Arbitrary conformances
2019-01-15 09:27:09 -08:00
Mathew Polzin
3a0ede2372
Get rid of OpenAPI namespace because a compiler bug was making it more hassle than it was worth.
2019-01-14 23:46:39 -08:00
Mathew Polzin
cb04a01e71
Add some todos and delete an old file
2019-01-14 23:29:49 -08:00
Mathew Polzin
3c29244540
fill out some of the relationship tests
2019-01-14 23:14:25 -08:00
Mathew Polzin
a9e1e49a79
Add test helpers for Open API test target
2019-01-14 21:18:49 -08:00
Mathew Polzin
9e6e713ad2
Add Codable for the parts of OpenAPI that are built so far.
2019-01-14 21:17:07 -08:00
Mathew Polzin
308f168a8c
Trying to map out the Open API Schema Object using Swift enums
2019-01-13 23:24:02 -08:00
Mathew Polzin
8726bcc9fa
Update all references to JSONAPITestLib to reflect renaming
2019-01-13 18:35:20 -08:00
Mathew Polzin
25bda795a7
Rename JSONAPITestLib to JSONAPITesting to fit with naming convention I am adopting going forward. Added OpenAPI JSON schema types. Added default schema types for a handful of Swift primitives.
2019-01-13 18:28:41 -08:00
Mathew Polzin
14a0256885
Add new targets
2019-01-13 17:27:10 -08:00
Mathew Polzin
b2041e9bc8
Update to bleeding edge Poly library
2019-01-13 07:47:20 -08:00
Mathew Polzin
fd9a626551
Ditch unused test constant.
2019-01-13 07:42:13 -08:00
Mathew Polzin
69bb40aa00
Move JSONAPITestLib tests into their own test target.
2019-01-13 07:16:46 -08:00
Mathew Polzin
060e0e3898
Move PolyWrapped out of Poly and into JSONAPI.
2019-01-12 21:51:51 -08:00
Mathew Polzin
b374367234
Move Poly into its own library.
2019-01-12 21:30:20 -08:00
Mathew Polzin
b363db30cd
Add MIT license docuemnt
2019-01-12 18:41:04 -08:00
Mathew Polzin
6904416623
Begin making Poly more useful in a broader context than JSONAPI.
2019-01-12 17:08:46 -08:00
Mathew Polzin
c04d3301b6
Add Meta-Relationship access.
2019-01-08 21:23:17 -08:00
Mathew Polzin
5a64bebc99
Merge branch 'master' of github.com:mattpolzin/JSONAPI
2019-01-08 20:13:11 -08:00
Mathew Polzin
790b0fbf52
Change capitalization
2019-01-06 18:20:18 -08:00
Mathew Polzin
539ecc451a
Remove swift syntax highlighting from JSON snippet.
2019-01-03 22:26:25 -08:00
Mathew Polzin
7eb1b05eae
Add swift syntax highlighting to README.
2019-01-03 22:23:17 -08:00
Mathew Polzin
3408263c2a
Add warning note to README
2019-01-03 22:09:43 -08:00
Mathew Polzin
1d6e5d3810
Added Meta-Attribute support and documentation
2019-01-02 22:49:38 -08:00
Mathew Polzin
d68404db36
update README to reflect change made in v0.12.0
2019-01-02 19:46:30 -08:00
Mathew Polzin
4f7db98a87
Update playground files to work with v0.12.0 changes
2019-01-02 19:42:32 -08:00