Skip to content

fix: allow cards without an hp field#51

Merged
Aviortheking merged 1 commit intotcgdex:masterfrom
soruh:master
Apr 15, 2026
Merged

fix: allow cards without an hp field#51
Aviortheking merged 1 commit intotcgdex:masterfrom
soruh:master

Conversation

@soruh
Copy link
Copy Markdown
Contributor

@soruh soruh commented Mar 4, 2026

Some cards don't have the hp field. To allow this, the model needs to be annotated with #[serde(default)] to make the hp None in that case.

Copy link
Copy Markdown
Member

@Aviortheking Aviortheking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch thanks for your contribution!

@Aviortheking Aviortheking merged commit 15a82b7 into tcgdex:master Apr 15, 2026
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