Closed sharmaakhil100 closed 3 months ago
@sharmaakhil100 thank you for giving it a go at trying to resolve the issue but to fix the error by just ignoring it is not in the best interest of the repo. We would prefer we handle it so that as the MLB api grows and adapts so does our wrapper and not just ignoring and limiting access to new variables. Im going to close this and submit a new PR showing how we would like the library to handle things like this, I suggest giving that a look over and applying it next time. I would love to approve your work in the future!
@KCNilssen completely understand! Thank you for closing it and and going with this approach, helps me learn as a newer developer and get a working library :D
Why
Running this code with 'gameLog', which is a valid stat input was giving an unexpected keyword summary exception:
What
Changes were made to ignore unexpected keywords instead of throwing an error
Tests
Tested with original library code calls and now it is working