Commit 184bb500 authored by Christophe Benz's avatar Christophe Benz

Move custom checks to schema

parent b604cfd8
{
"$schema": "https://git.opendatafrance.net/validata/goodtables-checks-schema/raw/v0.2/goodtables_checks_schema.json",
"title": "Validations personnalisées en complément du schéma SCDL Délibérations",
"author": "Pierre Dittgen, Jailbreak",
"version": "0.1",
"created": "2018-06-05",
"homepage": "https://git.opendatafrance.net/",
"pre_checks": [
{
"name": "column-delimiter",
"params": {
"delimiter": ","
}
}
],
"custom_checks": [
{
"name": "french-siret-value",
"params": {
"column": "COLL_SIRET"
}
},
{
"name": "year-interval-value",
"params": {
"column": "BUDGET_ANNEE"
}
},
{
"name": "cohesive-columns-value",
"params": {
"column": "BUDGET_ANNEE",
"othercolumns": [
"BUDGET_NOM"
]
}
},
{
"name": "cohesive-columns-value",
"params": {
"column": "VOTE_EFFECTIF",
"othercolumns": [
"VOTE_REEL",
"VOTE_POUR",
"VOTE_CONTRE",
"VOTE_ABSTENTION"
]
}
},
{
"name": "compare-columns-value",
"params": {
"column": "PREF_DATE",
"op": ">=",
"column2": "DELIB_DATE"
}
},
{
"name": "compare-columns-value",
"params": {
"column": "VOTE_EFFECTIF",
"op": ">=",
"column2": "VOTE_REEL"
}
},
{
"name": "compare-columns-value",
"params": {
"column": "VOTE_REEL",
"op": ">=",
"column2": "VOTE_POUR"
}
},
{
"name": "compare-columns-value",
"params": {
"column": "VOTE_REEL",
"op": ">=",
"column2": "VOTE_CONTRE"
}
},
{
"name": "compare-columns-value",
"params": {
"column": "VOTE_REEL",
"op": ">=",
"column2": "VOTE_ABSTENTION"
}
},
{
"name": "sum-columns-value",
"params": {
"column": "VOTE_REEL",
"columns": [
"VOTE_POUR",
"VOTE_CONTRE",
"VOTE_ABSTENTION"
]
}
},
{
"name": "nomenclature-actes-value",
"params": {
"column": "DELIB_MATIERE_NOM"
}
}
]
}
\ No newline at end of file
......@@ -144,5 +144,97 @@
"format": "uri",
"title": "Lien vers le document de la délibération"
}
],
"custom_checks": [
{
"name": "french-siret-value",
"params": {
"column": "COLL_SIRET"
}
},
{
"name": "year-interval-value",
"params": {
"column": "BUDGET_ANNEE"
}
},
{
"name": "cohesive-columns-value",
"params": {
"column": "BUDGET_ANNEE",
"othercolumns": [
"BUDGET_NOM"
]
}
},
{
"name": "cohesive-columns-value",
"params": {
"column": "VOTE_EFFECTIF",
"othercolumns": [
"VOTE_REEL",
"VOTE_POUR",
"VOTE_CONTRE",
"VOTE_ABSTENTION"
]
}
},
{
"name": "compare-columns-value",
"params": {
"column": "PREF_DATE",
"op": ">=",
"column2": "DELIB_DATE"
}
},
{
"name": "compare-columns-value",
"params": {
"column": "VOTE_EFFECTIF",
"op": ">=",
"column2": "VOTE_REEL"
}
},
{
"name": "compare-columns-value",
"params": {
"column": "VOTE_REEL",
"op": ">=",
"column2": "VOTE_POUR"
}
},
{
"name": "compare-columns-value",
"params": {
"column": "VOTE_REEL",
"op": ">=",
"column2": "VOTE_CONTRE"
}
},
{
"name": "compare-columns-value",
"params": {
"column": "VOTE_REEL",
"op": ">=",
"column2": "VOTE_ABSTENTION"
}
},
{
"name": "sum-columns-value",
"params": {
"column": "VOTE_REEL",
"columns": [
"VOTE_POUR",
"VOTE_CONTRE",
"VOTE_ABSTENTION"
]
}
},
{
"name": "nomenclature-actes-value",
"params": {
"column": "DELIB_MATIERE_NOM"
}
}
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment