Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Releases: facile-it/JSONAPI

Update with upstream library

31 May 14:35
27f4a18

Choose a tag to compare

Update with upstream library - 5.0.1 (#8)

* Update README.md

Minor typo fix.

* Unindent and add syntax highlighting.

* Add linux tests against 5.1 and 5.2

* Remove test manifest files.

* add diagnostic for linux test run

* work around Linux

* hopefully key ordering was the problem with a linux test error.

* Add better error reports for missing type or id on a relationship object

* Modifying SuccessDocument to guarantee properties of itself that it can guarantee (obviously the document contains a primary resource body because it is not an error body). Fix some warnings new as of the 5.2 compiler.

* bump required swift version to 5.2, update some map functions to take advantage of key values as functions.

* remove deprecated subscript access to JSONAPI.ResourceObject attributes.

* drop 5.1 tests

* update README to refer to the 4.0 alpha

* Add new MetaRelationship type to address the use-case of a relationship object with no data entry.

* A bit more test coverage for MetaRelationship and a note at the top of a now-confusingly-named section in the documentation.

* Add some convenience initializers for the most basic success and error documents

* Add abstraction points around single and many resource bodies that expose values.

* Update README.md

* Update README.md

* Update README.md

* Add CompoundResource. Add SucceedableJSONAPIDocument and FailableJSONAPIDocument protocols. Make ResourceObject hashable when its Id is hashable. Make Id's Hashable conformance take its type into consideration since the Id type's primary motivation is to retain differentiation based on the type of thing being identified.

* update GitHub Actions workflow to use a test matrix.

* Update README.md

* Add filtering of relatives to CompoundResource

* Rename Identifiable to JSONAPIIdentifiable and add Swift Identifiable conformance to the same types

* rename ResourceObject.Id to ResourceObject.ID so there is only one typealias for a ResourceObject identifying type.

* bug fix to playground example.

* minor tweak to usage README.

* Attempt to force compiler to acknowledge that ResourceObjectProxy and ResourceObject have the same ID type.

* Had to change course due to type system errors with collision between one protocol's typealias and another's associatedtype

* re-update documentation

* re-fix example playgrounds

* A bit more cleanup

* sanity check test and note on the insanity

* updating and rearranging documentation

* link to new Google Colab example on resource storage.

* Add example of using SuccessDocument to short circuit errors as decoding failures.

* update podspec file for v 4

* Update README.md

* Update README.md

* ditch master nightly tests but add official 5.2 tests for focal, centos8, and amazonlinux and add nightlies for 5.3

* remove unavailable images

* Update Package.swift

Switch to Swift Package Manager dependency URLs that contain the .git extension. This is not required by SwiftPM, but if a project does not consistently use the .git extension on dependency URLs (or not) then SwiftPM can get into trouble. The majority of open source projects use or suggest using the .git extension, so this project will standardize in that direction as well.

* Update README.md

update README to suggest the `.git` extension when pulling JSONAPI into a project via SPM.

* WIP adding id metadata to relationships.

* don't use Swift 5.3 language features

* switch to official swift 5.3 docker images.

* apparently swift 5.2 compiler found this ambiguous somewhere

* fixing up documentation and code samples

* a bit more documentation on relationship metadata options

* add test coverage and fill a logic gap around nullable relationships paired with non-optional id metadata.

* prepare podspec file for major version bump

* instead of a slightly cryptic error about which include failed to parse, use ordinal numbers and add a total include count to the message.

* use jsonapi type names instead of indices in include decode failure messages.

* Add test for include failure not related to type mismatch

* really get includes errors down to a concise message when we know that all types are wrong or exactly one type is correct.

* add better documentation on relationship metadata

* update the version of the JSONAPI library indicated in the README.

* Add a note about typealiases to the relationship section of the readme.

* update supported swift versions badge

* better links documentation paired with a test to ensure documentation accuracy.

* Update usage.md

fix typo

* Update tests.yml

* don't bind on unused part of pattern match.

* add nightly swift 5.4 docker to CI

* see if its just the weirdness around the id name that is tripping the compiler up

* Revert "see if its just the weirdness around the id name that is tripping the compiler up"

This reverts commit 0f792996621fd845bf30f65d3e3db57cb0acc833.

* See if using name explicitly helps.

* revert Self -> ResourceObject change but also try swapping out a typealias reference that seems to be confusing to the compiler for the thing that typealias references.

* Update README.md

Add notes about (lack of) Carthage support.

* Import production Poly dependency

Co-authored-by: Seif Kobrosly <seifkobrosly@gmail.com>
Co-authored-by: Mathew Polzin <matt.polzin@gmail.com>
Co-authored-by: Zev Eisenberg <zev@zeveisenberg.com>

Meta and Link are Optional type

09 Sep 15:55
50651a8

Choose a tag to compare

To make the management of meta and links more flexible we have made these optional classes with optional properties.

Add NoResourceObject

19 May 09:47
3b9c720

Choose a tag to compare

Created NoResourceObject, this is a particular object with:

  • Optional jsonType,
  • Without Id, NoResourceObject doesn't need the Id to be instantiated

More flexible parsing

19 Mar 13:29
73217da

Choose a tag to compare

The library parse all known includes and ignored unknown ones

Point exactly to Poly 2.3.1

11 Mar 10:41

Choose a tag to compare

3.0.1

Update manifest
Morty Proxy This is a proxified and sanitized view of the page, visit original site.