Browse Source

[schema][xs]: missing values should be string, otherwise, it raises error when validating.

master
anuveyatsu 4 years ago
parent
commit
442b984545
2 changed files with 3 additions and 6 deletions
  1. +0
    -3
      datapackage.json
  2. +3
    -3
      process.py

+ 0
- 3
datapackage.json View File

@ -77,7 +77,6 @@
], ],
"missingValues": [ "missingValues": [
"None", "None",
null,
"" ""
] ]
} }
@ -133,7 +132,6 @@
], ],
"missingValues": [ "missingValues": [
"None", "None",
null,
"" ""
] ]
} }
@ -184,7 +182,6 @@
], ],
"missingValues": [ "missingValues": [
"None", "None",
null,
"" ""
] ]
} }


+ 3
- 3
process.py View File

@ -62,7 +62,7 @@ Flow(
), ),
delete_fields(['Case']), delete_fields(['Case']),
update_resource('time_series_19-covid-Deaths', name='time-series-19-covid-combined', path='data/time-series-19-covid-combined.csv'), update_resource('time_series_19-covid-Deaths', name='time-series-19-covid-combined', path='data/time-series-19-covid-combined.csv'),
update_schema('time-series-19-covid-combined', missingValues=['None', None, ''], fields=[
update_schema('time-series-19-covid-combined', missingValues=['None', ''], fields=[
{ {
"format": "%Y-%m-%d", "format": "%Y-%m-%d",
"name": "Date", "name": "Date",
@ -142,7 +142,7 @@ Flow(
} }
) )
), ),
update_schema('worldwide-aggregated', missingValues=['None', None, ''], fields=[
update_schema('worldwide-aggregated', missingValues=['None', ''], fields=[
{ {
"format": "%Y-%m-%d", "format": "%Y-%m-%d",
"name": "Date", "name": "Date",
@ -201,7 +201,7 @@ Flow(
} }
) )
), ),
update_schema('countries-aggregated', missingValues=['None', None, ''], fields=[
update_schema('countries-aggregated', missingValues=['None', ''], fields=[
{ {
"format": "%Y-%m-%d", "format": "%Y-%m-%d",
"name": "Date", "name": "Date",


Loading…
Cancel
Save