You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is the expected schema for each API endpoint documented somewhere?
I was thinking of building pydantic models for each API endpoint result (Match details, Player details, Team details, etc), but it will be tricky if we don't know the expected schema. For example, this call to the match details endpoint (https://www.fotmob.com/api/matchDetails?matchId=4446454) returns a complex nested json with around 20k lines. Technically we could go through the results of each endpoint and reason about the schema ourselves, but it would be great if the 'true' schema is defined somewhere.
Hello @rbarman, I recommend building an additional layer using Pydantic in your source code for the models you may need as the schema response is not defined anywhere. This is the approach I use in my personal project, and it works well.
What feature would you like to see?
https://docs.pydantic.dev/latest/
The text was updated successfully, but these errors were encountered: