pandaSDMX
pandaSDMX copied to clipboard
Case-insensitive comparison in util.Resource.from_obj()
Supplying a resource object (e.g. models.Structure to api.Resource.get() with a resource argument throws a KeyError.
This is because the class name is camelcase and the enum element names are lowercase.
A case-insensitive match solves this.