Skip to content

Audit data types to ensure they agree with documentation/actual returned data. - #38

Merged
JacobHearst merged 1 commit into
JacobHearst:mainfrom
seansfkelley:update-fields
Aug 27, 2026
Merged

Audit data types to ensure they agree with documentation/actual returned data.#38
JacobHearst merged 1 commit into
JacobHearst:mainfrom
seansfkelley:update-fields

Conversation

@seansfkelley

@seansfkelley seansfkelley commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

The SLZ drop today revealed that the non-nullable fields on Card.Preview are wrong; specifically they don't have a sourceUri but the documentation says they are all nullable.

I took the opportunity to go through and update all fields; besides the above it was just missing fields/enum values, rather than incorrect types/nullity, excepting the typoed cardMarketId, which should be cardmarketId (auto-camel-cased from cardmarket_id).

Edit: two days later it looks like Scryfall updated the SLZ cards to have a sourceUri, so the inciting issue doesn't reproduce anymore, but this PR is still relevant because the fields are still documented as nullable.

Comment thread Sources/ScryfallKit/Models/Card/Card+Symbol.swift
@JacobHearst
JacobHearst merged commit e9cbe72 into JacobHearst:main Aug 27, 2026
2 checks passed
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.

2 participants