fix: add Config extra=ignore to DeckCardWithStatus to prevent 422 from adapter extra fields
This commit is contained in:
1 parent
76139477be
commit
5c31be6023
1 file changed
+3
@@ -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 = ""
|
||||
|
||||
Reference in new issue
Block a user