{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://example.com/root.json",
"type": "array",
"items": {
"$id": "#items",
"type": "object",
"required": [
"noOrdre",
"libelle",
"libelleCourt",
"libelleMobile",
"type",
"resultats"
],
"properties": {
"noOrdre": {
"$id": "#noOrdre",
"type": "integer"
},
"libelle": {
"$id": "#libelle",
"type": "string",
"pattern": "^(.*)$"
},
"libelleCourt": {
"$id": "#libelleCourt",
"type": "string",
"pattern": "^(.*)$"
},
"libelleMobile": {
"$id": "#libelleMobile",
"type": "string",
"pattern": "^(.*)$"
},
"type": {
"$id": "#type",
"type": "string",
"pattern": "^(.*)$"
},
"resultats": {
"$id": "#resultats",
"type": "object",
"required": [
"heurePublication",
"suisseTotalOui",
"suisseTotalNon",
"suissePourcentOui",
"suissePourcentNon",
"nbCantonOui",
"nbCantonNon",
"nbDemiCantonOui",
"nbDemiCantonNon",
"resultatsParCantons",
"commentaire"
],
"properties": {
"heurePublication": {
"$id": "#heurePublication",
"type": "string",
"pattern": "^(.*)$"
},
"suisseTotalOui": {
"$id": "#suisseTotalOui",
"type": "integer"
},
"suisseTotalNon": {
"$id": "#suisseTotalNon",
"type": "integer"
},
"suissePourcentOui": {
"$id": "#suissePourcentOui",
"type": "number"
},
"suissePourcentNon": {
"$id": "#suissePourcentNon",
"type": "number"
},
"nbCantonOui": {
"$id": "#nbCantonOui",
"type": "integer"
},
"nbCantonNon": {
"$id": "#nbCantonNon",
"type": "integer"
},
"nbDemiCantonOui": {
"$id": "#nbDemiCantonOui",
"type": "integer"
},
"nbDemiCantonNon": {
"$id": "#nbDemiCantonNon",
"type": "integer"
},
"resultatsParCantons": {
"$id": "#resultatsParCantons",
"type": "array",
"items": {
"$id": "#items",
"type": "object",
"required": [
"canton",
"nbOui",
"nbNon",
"pourcentOui",
"pourcentNon"
],
"properties": {
"canton": {
"$id": "#canton",
"type": "object",
"required": [
"id",
"initiale",
"nom",
"isDemiCanton"
],
"properties": {
"id": {
"$id": "#id",
"type": "integer"
},
"initiale": {
"$id": "#initiale",
"type": "string",
"pattern": "^(.*)$"
},
"nom": {
"$id": "#nom",
"type": "string",
"pattern": "^(.*)$"
},
"isDemiCanton": {
"$id": "#isDemiCanton",
"type": "boolean"
}
}
},
"nbOui": {
"$id": "#nbOui",
"type": "integer"
},
"nbNon": {
"$id": "#nbNon",
"type": "integer"
},
"pourcentOui": {
"$id": "#pourcentOui",
"type": "number"
},
"pourcentNon": {
"$id": "#pourcentNon",
"type": "number"
}
}
}
},
"commentaire": {
"$id": "#commentaire",
"type": "string",
"pattern": "^(.*)$"
}
}
}
}
}
}