sdmx-twg / sdmx-json

This repository is used for maintaining the SDMX-JSON message specifications.
54 stars 20 forks source link

Possible inconsistency regarding coded attributes/measures with array values #164

Open achronis opened 6 months ago

achronis commented 6 months ago

Hi,

In SDMX-JSON 2.0.0 data field guide here and here seem to give the impression that array values are supported only on uncoded data attributes/measures.

Specifically

  1. the minOccurs/maxOccurs is under component.format ( see )in SDMX-JSON data but in SDMX-JSON structure is under component directly see
  2. Documentation states here that component.values.values is only for un-coded attributes/measures
hoehrmann commented 6 months ago

You are looking at the structure part of data messages. If you have multiple values for an attribute or measure, the values would go into the dataset part. In the structure part, coded values are referenced by id, so they do not use value(s) there.

You also cannot use a component value to, say, create a set of codes from a codelist that is then referenced by an index. You have to reference the codes individually in the dataset.