sdmx-twg / sdmx-json

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

`valueArray` schema requires `oneOf` `integer` xor `number` #150

Open hoehrmann opened 7 months ago

hoehrmann commented 7 months ago

https://github.com/sdmx-twg/sdmx-json/blob/71fe5eaa9fcd29e3c15f2f0216a19b9b650b1dbd/data-message/tools/schemas/2.0.0/sdmx-json-data-schema.json#L902 defines

  valueArray:
    oneOf:
      - type: array
        items:
          anyOf:
            - type: integer
            - type: 'null'
        minItems: 1
      - type: array
        items:
          anyOf:
            - type: number
            - type: 'null'
        minItems: 1

An array [1] matches both alternatives and therefore fails to validate against the oneOf which is not intended.

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