I am trying to get my head around type providers in F# and what they can be used for. I have the following problem:
I have a series of JSON objects in Azure Blob Storage stored as follows:
container/YYYY/MM/DD/file.json
I can easily navigate to a specific file for a given date using a type provider. For example, I can access the JSON object as a string for the 5th of May as
type Azure = AzureTypeProvider<"ConnectionString">
let containers = Azure.Containers.``container``.``2017/``.``05/``.``05/``.``file.json``.Read()
How can I take a user input date string, say "2017-05-05" and get the corresponding JSON object in a type safe way? Should I even be using type providers?