Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If data and errors are mutually exclusive, then where do warnings go? #163

Open
hoehrmann opened this issue May 6, 2024 · 0 comments
Open

Comments

@hoehrmann
Copy link

In https://github.com/sdmx-twg/sdmx-json/tree/71fe5eaa9fcd29e3c15f2f0216a19b9b650b1dbd all the message formats say that »The members data and errors MUST NOT coexist in the same message.«

It seems to me that the schema does not actually enforce this requirement. I also believe this is different in SDMX-ML where the message "Footer" can co-exist with data. In SDMX-ML the footer may also contain "warnings" and "information" indicated by a severity attribute. For instance, an SDMX-ML to SDMX-JSON conversion tool might want to indicate a warning that time and time zone information has been imputed during the conversion process (#161). Or for that matter, it might want to note that warnings from the SDMX-ML message had to be removed during the conversion process as they have no representation in SDMX-JSON.

I think at the least the specifications should highlight this limitation and then enforce this requirement in the schemas.

#162 would allow using $.meta.annotations to represent such additional information at least in an implementation-defined manner where implementations have the option to converge on a common representation, possibly following guidelines published separately.

(In doubt, please handle this as a public review comment on SDMX 3.1 once the comment period begins.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant