diff --git a/.paket/Paket.Restore.targets b/.paket/Paket.Restore.targets
new file mode 100644
index 00000000..1a326ea1
--- /dev/null
+++ b/.paket/Paket.Restore.targets
@@ -0,0 +1,249 @@
+
+
+
+
+
+
+ $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
+
+ true
+ $(MSBuildThisFileDirectory)
+ $(MSBuildThisFileDirectory)..\
+ $(PaketRootPath)paket-files\paket.restore.cached
+ $(PaketRootPath)paket.lock
+ /Library/Frameworks/Mono.framework/Commands/mono
+ mono
+
+ $(PaketRootPath)paket.exe
+ $(PaketToolsPath)paket.exe
+ "$(PaketExePath)"
+ $(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"
+ $(PaketRootPath)paket.bootstrapper.exe
+ $(PaketToolsPath)paket.bootstrapper.exe
+ "$(PaketBootStrapperExePath)"
+ $(MonoPath) --runtime=v4.0.30319 "$(PaketBootStrapperExePath)"
+
+
+
+
+ true
+ true
+
+
+
+
+
+
+ true
+ $(NoWarn);NU1603
+
+
+
+ $([System.IO.File]::ReadAllText('$(PaketRestoreCacheFile)'))
+ $([System.IO.File]::ReadAllText('$(PaketLockFilePath)'))
+ true
+ false
+ true
+
+
+
+
+
+
+
+
+ $(MSBuildProjectDirectory)\obj\$(MSBuildProjectFile).paket.references.cached
+
+ $(MSBuildProjectFullPath).paket.references
+
+ $(MSBuildProjectDirectory)\$(MSBuildProjectName).paket.references
+
+ $(MSBuildProjectDirectory)\paket.references
+ $(MSBuildProjectDirectory)\obj\$(MSBuildProjectFile).$(TargetFramework).paket.resolved
+ true
+ references-file-or-cache-not-found
+
+
+
+
+ $([System.IO.File]::ReadAllText('$(PaketReferencesCachedFilePath)'))
+ $([System.IO.File]::ReadAllText('$(PaketOriginalReferencesFilePath)'))
+ references-file
+ false
+
+
+
+
+ false
+
+
+
+
+ true
+ target-framework '$(TargetFramework)'
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[0])
+ $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[1])
+
+
+ %(PaketReferencesFileLinesInfo.PackageVersion)
+
+
+
+
+ $(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).paket.clitools
+
+
+
+
+
+
+
+
+ $([System.String]::Copy('%(PaketCliToolFileLines.Identity)').Split(',')[0])
+ $([System.String]::Copy('%(PaketCliToolFileLines.Identity)').Split(',')[1])
+
+
+ %(PaketCliToolFileLinesInfo.PackageVersion)
+
+
+
+
+ $(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).NuGet.Config
+
+
+
+
+
+
+ false
+
+
+
+
+
+ <_NuspecFilesNewLocation Include="$(BaseIntermediateOutputPath)$(Configuration)/*.nuspec"/>
+
+
+
+ $(MSBuildProjectDirectory)/$(MSBuildProjectFile)
+ true
+ false
+ true
+ $(BaseIntermediateOutputPath)$(Configuration)/
+ $(BaseIntermediateOutputPath)
+
+
+
+ <_NuspecFiles Include="$(AdjustedNuspecOutputPath)*.nuspec"/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.paket/paket.exe b/.paket/paket.exe
index 5e476003..d5657f0a 100644
Binary files a/.paket/paket.exe and b/.paket/paket.exe differ
diff --git a/paket.dependencies b/paket.dependencies
index a39eac25..5d397a0a 100644
--- a/paket.dependencies
+++ b/paket.dependencies
@@ -15,12 +15,12 @@ github fsharp/FSharp.Data src/CommonRuntime/StructuralTypes.fs
github fsharp/FSharp.Data src/Json/JsonValue.fs
github fsharp/FSharp.Data src/Json/JsonConversions.fs
github fsharp/FSharp.Data src/Json/JsonExtensions.fs
-github fsprojects/FSharp.TypeProviders.StarterPack src/ProvidedTypes.fsi
-github fsprojects/FSharp.TypeProviders.StarterPack src/ProvidedTypes.fs
-github fsprojects/FSharp.TypeProviders.StarterPack src/ProvidedTypesTesting.fs
+github fsprojects/FSharp.TypeProviders.SDK src/ProvidedTypes.fsi
+github fsprojects/FSharp.TypeProviders.SDK src/ProvidedTypes.fs
+github fsprojects/FSharp.TypeProviders.SDK src/ProvidedTypesTesting.fs
group Build
- framework: net45
+ framework: net461
source https://nuget.org/api/v2
nuget FAKE
diff --git a/paket.lock b/paket.lock
index c99e4883..215a58a1 100644
--- a/paket.lock
+++ b/paket.lock
@@ -3,29 +3,29 @@ NUGET
remote: https://www.nuget.org/api/v2
FSharp.Core (4.0.0.1)
Newtonsoft.Json (10.0.3)
- YamlDotNet (4.2.1)
+ YamlDotNet (4.2.2)
GITHUB
remote: fsharp/FSharp.Data
- src/CommonRuntime/IO.fs (503ed03c0ab56dcd4938946d898df886a7c5a79c)
- src/CommonRuntime/NameUtils.fs (503ed03c0ab56dcd4938946d898df886a7c5a79c)
- src/CommonRuntime/Pluralizer.fs (503ed03c0ab56dcd4938946d898df886a7c5a79c)
- src/CommonRuntime/StructuralTypes.fs (503ed03c0ab56dcd4938946d898df886a7c5a79c)
- src/CommonRuntime/TextConversions.fs (503ed03c0ab56dcd4938946d898df886a7c5a79c)
- src/Json/JsonConversions.fs (503ed03c0ab56dcd4938946d898df886a7c5a79c)
- src/Json/JsonExtensions.fs (503ed03c0ab56dcd4938946d898df886a7c5a79c)
- src/Json/JsonValue.fs (503ed03c0ab56dcd4938946d898df886a7c5a79c)
- src/Net/Http.fs (503ed03c0ab56dcd4938946d898df886a7c5a79c)
- src/Net/UriUtils.fs (503ed03c0ab56dcd4938946d898df886a7c5a79c)
- remote: fsprojects/FSharp.TypeProviders.StarterPack
- src/ProvidedTypes.fs (1dab4f94411500794342f61f877feab772e5a754)
- src/ProvidedTypes.fsi (1dab4f94411500794342f61f877feab772e5a754)
- src/ProvidedTypesTesting.fs (1dab4f94411500794342f61f877feab772e5a754)
+ src/CommonRuntime/IO.fs (b5df1ca30f5bb7749c4fd340b61f1b7fc43fb547)
+ src/CommonRuntime/NameUtils.fs (b5df1ca30f5bb7749c4fd340b61f1b7fc43fb547)
+ src/CommonRuntime/Pluralizer.fs (b5df1ca30f5bb7749c4fd340b61f1b7fc43fb547)
+ src/CommonRuntime/StructuralTypes.fs (b5df1ca30f5bb7749c4fd340b61f1b7fc43fb547)
+ src/CommonRuntime/TextConversions.fs (b5df1ca30f5bb7749c4fd340b61f1b7fc43fb547)
+ src/Json/JsonConversions.fs (b5df1ca30f5bb7749c4fd340b61f1b7fc43fb547)
+ src/Json/JsonExtensions.fs (b5df1ca30f5bb7749c4fd340b61f1b7fc43fb547)
+ src/Json/JsonValue.fs (b5df1ca30f5bb7749c4fd340b61f1b7fc43fb547)
+ src/Net/Http.fs (b5df1ca30f5bb7749c4fd340b61f1b7fc43fb547)
+ src/Net/UriUtils.fs (b5df1ca30f5bb7749c4fd340b61f1b7fc43fb547)
+ remote: fsprojects/FSharp.TypeProviders.SDK
+ src/ProvidedTypes.fs (b03aeb9b87c24559b99da3b3afdfcfdae0cc3ce0)
+ src/ProvidedTypes.fsi (b03aeb9b87c24559b99da3b3afdfcfdae0cc3ce0)
+ src/ProvidedTypesTesting.fs (b03aeb9b87c24559b99da3b3afdfcfdae0cc3ce0)
GROUP Build
-RESTRICTION: == net45
+RESTRICTION: == net461
NUGET
remote: https://www.nuget.org/api/v2
- DotLiquid (2.0.168)
- FAKE (4.63)
+ DotLiquid (2.0.227)
+ FAKE (4.63.2)
FSharp.Compiler.Service (2.0.0.6)
FSharp.Core (4.2.3)
FSharp.Formatting (2.14.4)
@@ -33,12 +33,12 @@ NUGET
FSharpVSPowerTools.Core (>= 2.3 < 2.4)
FSharpVSPowerTools.Core (2.3)
FSharp.Compiler.Service (>= 2.0.0.3)
- Octokit (0.24)
+ Octokit (0.28)
Suave (2.2.1)
FSharp.Core (>= 4.0.0.1)
GITHUB
remote: fsharp/FAKE
- modules/Octokit/Octokit.fsx (291f58cc70aba6dd871cf18e66d2d88357e4f208)
+ modules/Octokit/Octokit.fsx (0341a2e614eb2a7f34607cec914eb0ed83ce9add)
Octokit (>= 0.20)
GROUP OWIN
RESTRICTION: == net461
@@ -74,18 +74,18 @@ RESTRICTION: == net461
NUGET
remote: https://www.nuget.org/api/v2
Argu (3.7)
- Expecto (5.0)
+ Expecto (5.0.1)
Argu (>= 3.7)
FSharp.Core (>= 4.1.12)
Mono.Cecil (>= 0.10.0-beta5)
- FSharp.Compiler.Service (13.0)
+ FSharp.Compiler.Service (17.0.1)
System.Collections.Immutable (>= 1.3.1)
System.Reflection.Metadata (>= 1.4.2)
FSharp.Core (4.2.3) - redirects: force
- FSharp.Data (2.3.3)
- Microsoft.NETCore.Platforms (2.0)
- Mono.Cecil (0.10.0-beta6)
- NETStandard.Library (2.0)
+ FSharp.Data (2.4.2)
+ Microsoft.NETCore.Platforms (2.0.1)
+ Mono.Cecil (0.10.0-beta7)
+ NETStandard.Library (2.0.1)
Microsoft.NETCore.Platforms (>= 1.1)
System.Collections.Immutable (1.4)
NETStandard.Library (>= 1.6.1)
diff --git a/src/SwaggerProvider.DesignTime/DefinitionCompiler.fs b/src/SwaggerProvider.DesignTime/DefinitionCompiler.fs
index 068b1a42..b51fbed4 100644
--- a/src/SwaggerProvider.DesignTime/DefinitionCompiler.fs
+++ b/src/SwaggerProvider.DesignTime/DefinitionCompiler.fs
@@ -1,6 +1,7 @@
namespace SwaggerProvider.Internal.Compilers
open ProviderImplementation.ProvidedTypes
+open ProviderImplementation.ProvidedTypes.UncheckedQuotations
open FSharp.Data.Runtime.NameUtils
open SwaggerProvider.Internal
open SwaggerProvider.Internal.Schema
@@ -28,8 +29,8 @@ type DefinitionCompiler (schema:SwaggerObject) =
let providedField = ProvidedField("_" + propertyName.ToLower(), ty)
let providedProperty =
ProvidedProperty(propertyName, ty,
- GetterCode = (fun [this] -> Expr.FieldGet (this, providedField)),
- SetterCode = (fun [this;v] -> Expr.FieldSet(this, providedField, v)))
+ getterCode = (fun [this] -> Expr.FieldGetUnchecked (this, providedField)),
+ setterCode = (fun [this;v] -> Expr.FieldSetUnchecked(this, providedField, v)))
if propName <> propertyName then
providedProperty.AddCustomAttribute
<| SwaggerProvider.Internal.RuntimeHelpers.getPropertyNameAttribute propName
@@ -69,8 +70,7 @@ type DefinitionCompiler (schema:SwaggerObject) =
| File, _ -> typeof.MakeArrayType(1)
| Enum _, _ -> typeof //TODO: find better type
| Array eTy, _ -> (compileSchemaObject (uniqueName tyName "Item") eTy true).MakeArrayType()
- | Dictionary eTy,_-> typedefof