Source code for sidequest_common.schemas.beasts

 1"""Tameable beast reference schemas: read-only Battle.net game data for the Tameable beasts page."""
 2
 3from pydantic import BaseModel
 4
 5
[docs] 6class BeastSchema(BaseModel): 7 """One tameable beast, as returned by `GET /api/beasts` and `GET /api/beasts/{id}`.""" 8 9 id: int 10 name: str 11 family_id: int | None = None 12 family: str | None = None 13 image_url: str | None = None 14 display_id: int | None = None
15 16
[docs] 17class BeastFamilySchema(BaseModel): 18 """One beast family and how many tameable beasts belong to it, as listed by `GET /api/beasts/families`.""" 19 20 id: int 21 name: str 22 count: int