fix: add Config extra=ignore to DeckCardWithStatus to prevent 422 from adapter extra fields

This commit is contained in:
KoalaTrapLord authored and GitHub committed 2026-03-19 15:34:18 -04:00
1 parent 76139477be
commit 5c31be6023
1 file changed
+3
+3
View File
@@ -25,6 +25,9 @@ class CardAlternative(BaseModel):
class DeckCardWithStatus(BaseModel):
"""A deck card enriched with ownership and substitution data."""
class Config:
extra = "ignore"
name: str
count: int = 1
category: str = ""