jmcarp / betfair.py

A Python wrapper for the Betfair API
MIT License
103 stars 76 forks source link

no exception on rogue fields #42

Closed ms5 closed 9 years ago

ms5 commented 9 years ago

this addresses issue #41 (follow up on #24).

ms5 commented 9 years ago

strict=False turn off rogue field detection in schematic model. I checked the source code, and it does not have any affect on document validation except, rogue fields.

I actually do not really understand, why this function is called with strict=True (but it is, from where?). So i try to make sure strict is off. I actually would prefer a function that logs a warning when a rogue field is detected, but I couldn't really find out how to do this correctly, since there is no distinct exception for this case.