GitHub user shiraeeshi opened a pull request:
https://github.com/apache/avro/pull/94
Make numeric schemas not valid for boolean datums
In python 2.x True and False values are instances of int, so we have to
check that int value is not also a boolean.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/shiraeeshi/avro fix/boolean_int
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/avro/pull/94.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #94
----
commit ec9303d2a6d828aa47632c968b60ceefb9f6cd26
Author: shiraeeshi <[email protected]>
Date: 2016-05-12T14:52:32Z
make numeric schemas not valid for boolean datums
commit a1866452df027ec5ee1b40ce1acd5630fe8fb24b
Author: shiraeeshi <[email protected]>
Date: 2016-05-12T14:56:26Z
fix formatting
commit e18cc0bf174b610993bc4daabf79f0ee1c3d9a13
Author: shiraeeshi <[email protected]>
Date: 2016-05-12T15:07:30Z
fix int and long schemas
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---