Skip to content

Commit

Permalink
Merge branch 'worldbank-api-v2' into allow-datetimeoffset-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
nhirschey committed Jul 15, 2020
2 parents 166e85f + a12a95d commit 53b7579
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 405 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ paket-files
TestResults
*.log
.vscode
.idea
.idea
.ionide
2 changes: 1 addition & 1 deletion docs/content/library/XmlProvider.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ When the file includes other schema files, the `ResolutionFolder` parameter can
The uri may also refer to online resources:
*)

type RssXsd = XmlProvider<Schema = "http://europa.eu/rapid/conf/RSS20.xsd">
type RssXsd = XmlProvider<Schema = "https://www.w3schools.com/xml/note.xsd">

(**
Expand Down
2 changes: 1 addition & 1 deletion src/WorldBank/WorldBankProvider.fs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type public WorldBankProvider(cfg:TypeProviderConfig) as this =
let asm = System.Reflection.Assembly.GetExecutingAssembly()
let ns = "FSharp.Data"

let defaultServiceUrl = "http://api.worldbank.org"
let defaultServiceUrl = "http://api.worldbank.org/v2"
let cacheDuration = TimeSpan.FromDays 30.0
let restCache = createInternetFileCache "WorldBankSchema" cacheDuration

Expand Down
4 changes: 2 additions & 2 deletions src/WorldBank/WorldBankRuntime.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// --------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------
// WorldBank type provider - runtime components
// --------------------------------------------------------------------------------------

Expand Down Expand Up @@ -184,7 +184,7 @@ module Implementation =
countryOrRegionCode
"indicators"
indicatorCode ]
[ "date", "1900:2050" ]
[ "date", "" ]
"date"
return
seq { for k, v in data do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Xml,TypeInference.xml,false,false,,false,
Xml,SampleAzureServiceManagement.xml,false,false,,true,
Xml,TimeSpans.xml,false,false,,true,
Xml,,false,false,,false,po.xsd
Xml,,false,false,,false,http://europa.eu/rapid/conf/RSS20.xsd
Xml,,false,false,,false,homonim.xsd
Xml,,false,false,,false,IncludeFromWeb.xsd
Json,WorldBank.json,false,WorldBank,,true
Expand Down
Loading

0 comments on commit 53b7579

Please sign in to comment.