alan-turing-institute / nowwhat

Provide an overview of which projects REG are doing right now, reimagination of whatnow
MIT License
0 stars 0 forks source link

Replace “Projects” JsonProvider by custom JSON decoder #37

Closed rolyp closed 2 years ago

rolyp commented 2 years ago

Type providers work well for the scenario, “here’s a previously unknown dataset, I’d like to do some typed data analysis with it”. Our schema is fixed by Forecast, so we don’t especially benefit from this convenience feature of type providers. Provided types also suffer from being opaque and inflexible. Using the thoth library, it should be relatively easy to roll our own JSON deserialiser, which will make the Forecast data model explicit and easy to program with.