Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make fields optional and specify descriptions #11

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions exemple-valide.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
id,type_fontaine,modele,latitude,longitude,adresse,code_commune_insee,precision_geo,date_installation,est_potable,indisponible,ouverture_restriction,gestionnaire
"450024946",robinet,BF Bayard,48.84274722972126,2.3128939116029996,36 boulevard Pasteur,75056,dans le parc sur le terre-plein,2023-10-03,True,,False,Ville de Paris
GF92742,normale,GHM Ville de Paris,48.83651057921518,2.306201856192339,1 place d'Alleray,75056,,2021-02-03,True,2024-03-10,True,Ville de Paris
T15373E,autre,GHM Ronde,43.60915876848268,1.467460575799352,Fer à cheval,31555,,2012-06-11,False,,False,Ville de Toulouse
id,type_fontaine,modele,latitude,longitude,adresse,code_commune_insee,precision_geo,date_installation,est_potable,indisponible,ouverture_restriction,accessibl_pmr,gestionnaire
"450024946",robinet,BF Bayard,48.84274722972126,2.3128939116029996,36 boulevard Pasteur,75056,dans le parc sur le terre-plein,2023-10-03,True,,False,True,Ville de Paris
GF92742,normale,GHM Ville de Paris,48.83651057921518,2.306201856192339,1 place d'Alleray,75056,,,True,2024-03-10,True,False,Ville de Paris
T15373E,autre,GHM Ronde,43.60915876848268,1.467460575799352,,31555,,2012-06-11,False,,False,True,Ville de Toulouse
27 changes: 14 additions & 13 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@
"title": "Modèle",
"description":"Le modèle de la fontaine.",
"type":"string",
"example":"BF Bayard",
"constraints":{
"required":true
}
"example":"BF Bayard"
},
{
"name":"latitude",
Expand Down Expand Up @@ -107,12 +104,9 @@
{
"name":"adresse",
"title": "Voie et numéro de voie",
"description":"Adresse de l'objet contenant la voie et le numéro sur la voie.",
"description":"Adresse de l'objet contenant la voie et le numéro sur la voie, au format BAN.",
"type":"string",
"example":"8 boulevard Victor Hugo",
"constraints": {
"required":true
}
"example":"8 boulevard Victor Hugo"
},
{
"name":"code_commune_insee",
Expand All @@ -138,10 +132,7 @@
"description":"Date d'installation de la fontaine, au format AAAA-MM-JJ (si seule l'année est connue, mettre le 1er janvier).",
"type":"date",
"format": "%Y-%m-%d",
"example":"2022-02-11",
"constraints": {
"required":true
}
"example":"2022-02-11"
},
{
"name":"est_potable",
Expand Down Expand Up @@ -171,6 +162,16 @@
"required":true
}
},
{
"name":"accessibl_pmr",
"title": "Accessibilité PMR",
"description":"Booléen renseignant sur la'accessibilité de la fontaine en période de restrictions. `true` si accessible, `false` sinon.",
"type":"boolean",
"example":true,
"constraints": {
"required":true
}
},
{
"name":"gestionnaire",
"title": "Gestionnaire",
Expand Down
Loading