DBnomics model - source_href should be an array of sources
In some cases, a dataset is generated from more than one source file. This is the case in BIS, issue #596 (closed):
In dataset.json we have:
"source_href":[
"WEBSTATS_CBPOL_D_DATAFLOW_csv_col.csv",
"WEBSTATS_CBPOL_M_DATAFLOW_csv_col.csv"
]
Validation fails:
- Dataset "BIS/cbpol" at location cbpol/dataset.json
Error code: dataset-schema
Message: Dataset does not conform to schema
Cause:
- at path: ['source_href']
message: ['WEBSTATS_CBPOL_D_DATAFLOW_csv_col.csv', 'WEBSTATS_CBPOL_M_DATAFLOW_csv_col.csv'] is not of type 'string'
value: ['WEBSTATS_CBPOL_D_DATAFLOW_csv_col.csv', 'WEBSTATS_CBPOL_M_DATAFLOW_csv_col.csv']
I suggest to extend source_href to any of:
- one url
- an array of urls