diff --git a/src/data/data-format.coffee b/src/data/data-format.coffee index cd4dfff..53fc6dc 100644 --- a/src/data/data-format.coffee +++ b/src/data/data-format.coffee @@ -25,7 +25,7 @@ formats = # The SDMX-JSON 1.0.0 data format. SDMX_JSON_1_0_0: 'application/vnd.sdmx.data+json;version=1.0.0' - # The SDMX-CSV 1.0.0 data format. + # The SDMX-CSV 1.0.0 data format, with default labels and non-normalized periods SDMX_CSV_1_0_0: 'application/vnd.sdmx.data+csv;version=1.0.0' # Shortcut for the latest version of SDMX-JSON @@ -34,6 +34,15 @@ formats = # Shortcut for the latest version of SDMX-CSV SDMX_CSV: 'application/vnd.sdmx.data+csv;version=1.0.0' + # The SDMX-CSV 1.0.0 data format, with ID and name as labels + SDMX_CSV_WITH_BOTH_LABELS: 'application/vnd.sdmx.data+csv;version=1.0.0;labels=both' + + # The SDMX-CSV 1.0.0 data format, with normalized periods + SDMX_CSV_WITH_NORMALIZED_PERIODS: 'application/vnd.sdmx.data+csv;version=1.0.0;timeFormat=normalized' + + # The SDMX-CSV 1.0.0 data format, with default ID and name as labels, as well as normalized periods + SDMX_CSV_WITH_BOTH_LABELS_AND_NORMALIZED_PERIODS: 'application/vnd.sdmx.data+csv;version=1.0.0;labels=both;timeFormat=normalized' + # Shortcut for the latest version of SDMX-ML Generic SDMX_ML_GENERIC: 'application/vnd.sdmx.genericdata+xml;version=2.1' diff --git a/test/data/data-format.test.coffee b/test/data/data-format.test.coffee index 71a6af5..dc09f21 100644 --- a/test/data/data-format.test.coffee +++ b/test/data/data-format.test.coffee @@ -13,6 +13,9 @@ describe 'Data formats', -> 'application/vnd.sdmx.data+json;version=1.0.0-cts' 'application/vnd.sdmx.data+json;version=1.0.0' 'application/vnd.sdmx.data+csv;version=1.0.0' + 'application/vnd.sdmx.data+csv;version=1.0.0;labels=both' + 'application/vnd.sdmx.data+csv;version=1.0.0;timeFormat=normalized' + 'application/vnd.sdmx.data+csv;version=1.0.0;labels=both;timeFormat=normalized' ] it 'contains all the expected formats and only those', ->