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
I noticed root endpoints don't work for endpoints that don't have name properties for their objects, such as /machine. I talk about this in this issue at pokepy, but I'll state it again. The /machine endpoint returns this:
I noticed root endpoints don't work for endpoints that don't have
name
properties for their objects, such as/machine
. I talk about this in this issue at pokepy, but I'll state it again. The/machine
endpoint returns this:while the
/pokemon
endpoint returns this:Because there's no
name
property, it returns None for the name here in the APIResource class.I think I managed to fix the issue by adding this conditional after those lines:
Should I open a pull request for this then?
The text was updated successfully, but these errors were encountered: