tuomur / python-odata

A simple library for read/write access to OData services
MIT License
79 stars 59 forks source link

Support EnumTypes that do not specify values #35

Open tpow opened 5 years ago

tpow commented 5 years ago

According to the OData 4 Spec on Enumeration Types the Value attributes can be omitted. In this situation, the first one is considered to have a value of 0, the next is value 1, and so on.

I've added support for omitting the Value attribute, and updated the tests to include a demo EnumType that relies on this.

Tim

tpow commented 5 years ago

This might fix #30.