bis-med-it / pysdmx

Your opinionated Python SDMX library
https://www.sdmx.io/tools/pysdmx/
Other
8 stars 2 forks source link

Issue with finding dataflows in nested categories #99

Closed sosna closed 2 weeks ago

sosna commented 3 weeks ago

Referencing a category in a category scheme for dataflows is throwing the following error:

pysdmx.errors.NotFound: urn:sdmx:org.sdmx.infomodel.categoryscheme.Category=BIS.MEDIT:MEDIT_DS(1.0).MEDAL does not match re.compile('^.*\\.(.*)=(.*):(.*)\\((.*)\\)$')
sosna commented 2 weeks ago

The issue affects SDMX-JSON only. The current implementation expects the categorisation' source to be the category and the target to be a dataflow. However, according to the standard, it should be the other way around.