CompositionalIT / SAFE-Dojo

An introductory dojo to learn how to develop full stack web applications in F#
378 stars 126 forks source link

Use static JSON samples for type providers #137

Closed theprash closed 2 years ago

theprash commented 2 years ago

Currently the JsonProvider is pointed directly to an API URL so an API call needs to succeed while compiling.

JsonProvider<"https://api.open-meteo.com/v1/forecast?latitude=51.5074&longitude=0.1278&current_weather=true">

This sometimes gives errors, so we should switch to giving JsonProvider JSON sample text instead so the app always compiles.

Do this for all three uses of JsonProvider.

Make sure both suggested-solution and master branches are updated.