json-wikipedia
json-wikipedia copied to clipboard
Fix language enum issue
Commit 58d4b1e9608fcb883ab0d4cc7291e01492e94b7f introduced a regression: now languages are not just strings but proper values of an enum but in the enum in avro I specied only Italian and English.
Requesting a language other than "it" or "en" will produce an error accessing to the enum as kindly observed by @fabriziorizzo in https://github.com/diegoceccarelli/json-wikipedia/issues/60.
This PR should fix the issue. I won't commit it in the master now because I want to add tests and more documentation, and check with @fabriziorizzo that the change works.