mirror of
https://github.com/Respect/Validation.git
synced 2024-06-08 08:42:15 +02:00
718bacad04
There is no much benefit from having individual rules for each country's subdivision, quite the opposite. It increases the amount of code and makes it hard to change the implementation of these rules. Right now, the only sane way to change those rules is with a customized script. This commit will remove the Subdivision Code rules per country and instead will put that information into JSON files. We both wouldn't like to keep this in this library anymore, and we are considering having another library to deal with this data [1], but since it seems like it may take some time, looks better to do it temporarily here. [1]: https://github.com/sokil/php-isocodes/issues/12 Co-authored-by: Mazen Touati <mazen_touati@hotmail.com> Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
39 lines
1 KiB
JSON
39 lines
1 KiB
JSON
{
|
|
"source": "http://www.geonames.org/RS/administrative-division-serbia.html",
|
|
"country": "Serbia",
|
|
"subdivisions": {
|
|
"00": "Beograd",
|
|
"01": "Severnobački okrug",
|
|
"02": "Srednjebanatski okrug",
|
|
"03": "Severnobanatski okrug",
|
|
"04": "Južnobanatski okrug",
|
|
"05": "Zapadno-Bački Okrug",
|
|
"06": "Južnobački okrug",
|
|
"07": "Srem",
|
|
"08": "Mačvanski okrug",
|
|
"09": "Kolubarski okrug",
|
|
"10": "Podunavski okrug",
|
|
"11": "Braničevski okrug",
|
|
"12": "Šumadija",
|
|
"13": "Pomoravski okrug",
|
|
"14": "Borski okrug",
|
|
"15": "Zaječarski okrug",
|
|
"16": "Zlatibor",
|
|
"17": "Moravički okrug",
|
|
"18": "Raški okrug",
|
|
"19": "Rasinski okrug",
|
|
"20": "Nišavski okrug",
|
|
"21": "Toplica",
|
|
"22": "Pirotski okrug",
|
|
"23": "Jablanički okrug",
|
|
"24": "Pčinjski okrug",
|
|
"25": "Kosovski okrug",
|
|
"26": "Pećki okrug",
|
|
"27": "Prizrenski okrug",
|
|
"28": "Kosovsko-Mitrovački okrug",
|
|
"29": "Kosovsko-Pomoravski okrug",
|
|
"KM": "Kosovo",
|
|
"VO": "Vojvodina"
|
|
}
|
|
}
|