Allow import of drops with errors
This commit is contained in:
parent
f06db7e47e
commit
8a253d68e1
1 changed files with 15 additions and 0 deletions
|
|
@ -269,11 +269,26 @@ class Extensions(BaseModel):
|
|||
}
|
||||
|
||||
|
||||
class GraphQLError(BaseModel):
|
||||
"""Schema for GraphQL error objects."""
|
||||
|
||||
message: str
|
||||
path: list[str | int] | None = None
|
||||
|
||||
model_config = {
|
||||
"extra": "ignore",
|
||||
"validate_assignment": True,
|
||||
"strict": True,
|
||||
"populate_by_name": True,
|
||||
}
|
||||
|
||||
|
||||
class GraphQLResponse(BaseModel):
|
||||
"""Schema for the complete GraphQL response from Twitch API."""
|
||||
|
||||
data: Data
|
||||
extensions: Extensions | None = None
|
||||
errors: list[GraphQLError] | None = None
|
||||
|
||||
model_config = {
|
||||
"extra": "forbid",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue