Skip to content

Add tlr legality to fix issues with decklist retrieval#84

Open
Matteas-Eden wants to merge 2 commits into
MarioMH8:mainfrom
Matteas-Eden:update-legalities
Open

Add tlr legality to fix issues with decklist retrieval#84
Matteas-Eden wants to merge 2 commits into
MarioMH8:mainfrom
Matteas-Eden:update-legalities

Conversation

@Matteas-Eden
Copy link
Copy Markdown

Description

Recently, I noticed that an app I made which uses moxfield-api started failing. After looking into it, and pasting the error into my nearest LLM to decipher, it turns out that Moxfield has updated the legalities in their list to include "TLR". That stands for Tiny Leaders Reborn, and it is a competitive-focused commander-alike format.

So to fix this library, I've updated the Zod schema to support "tlr".

Validation

I built the package with my changes, copied over the artifacts into my app's node_modules, and confirmed that the deck retrieval worked.

I did also run the unit tests, but almost all of them failed. However, they also fail on main, and some of the Moxfield URLs it tests against don't seem to exist anymore (404 pages). I'm going to suggest that it's not important those tests pass for this PR to merge.

@Matteas-Eden
Copy link
Copy Markdown
Author

Let me know if I've missed anything else important, as it's my first time contributing to this repo.

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