tuomur / python-odata

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

Allow polymorph objects #46

Open Addarkar opened 4 years ago

Addarkar commented 4 years ago

Navigation property does not need to point to the real class of result objects. The object types can be mixed because of, navigation property points to a base class of them. --> DirectoryObjects --> Groups|Roles|Users|... This fix resolves the object type based on response @odata.type and creates full featured object instances as they were queried directly