Skip to content

Alpha/3x#49

Merged
mattpolzin merged 31 commits into
beta/3xfrom
alpha/3x
Nov 13, 2019
Merged

Alpha/3x#49
mattpolzin merged 31 commits into
beta/3xfrom
alpha/3x

Conversation

@mattpolzin
Copy link
Copy Markdown
Owner

@mattpolzin mattpolzin commented Nov 6, 2019

WIP branch for alpha 3.0.0 releases.

  • Adds JSONAPITesting framework compare(to:) functions that deliver concise comparisons of two documents or resource objects.
  • Adds ResourceObjectDecodingError and DocumentDecodingError which represent more JSON:API-specific errors and come with good string descriptions for many common reasons why JSON:API resources or documents could fail to decode.

⚠️ Breaking Changes ⚠️

📛 Renames JSONAPIDocument to CodableJSONAPIDocument.
📛 Renames OptionalPrimaryResource to OptionalCodablePrimaryResource.
📛 Renames PrimaryResource to CodablePrimaryResource.
📛 Renames ResourceBody to CodableResourceBody.
📛 Renames PolyWrapped to CodablePolyWrapped.
📛 Renames SingleResourceBody.Entity to SingleResourceBody.PrimaryResource
📛 Renames ManyResourceBody.Entity to ManyResourceBody.PrimaryResource
📛 Renames JSONAPIEncodingError to JSONAPICodingError

⛔️ Deprecates subscript access of ResourceObject attributes in favor of key path dynamic member lookup.

🗑 Removes key path dynamic member lookup of Document properties on Document.SuccessDocument and Document.ErrorDocument in favor of directly providing relevant accessors (see SuccessDocument/ErrorDocument for details).

@mattpolzin mattpolzin self-assigned this Nov 6, 2019
@mattpolzin mattpolzin changed the base branch from master to beta/3x November 13, 2019 02:35
@mattpolzin mattpolzin marked this pull request as ready for review November 13, 2019 02:36
@mattpolzin mattpolzin merged commit 440b649 into beta/3x Nov 13, 2019
@mattpolzin mattpolzin deleted the alpha/3x branch November 13, 2019 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant