pandaSDMX icon indicating copy to clipboard operation
pandaSDMX copied to clipboard

Case-insensitive comparison in util.Resource.from_obj()

Open anderslreed opened this issue 3 years ago • 0 comments

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.

anderslreed avatar Jun 11 '22 18:06 anderslreed