Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 6.0.1-beta002 - Jan 6 2023

* Change the namespace of the `InferenceMode` enum from `FSharp.Data.Runtime.StructuralInference` to `FSharp.Data`.

### 6.0.1-beta001 - Aug 18 2022

* There are now multiple packages
Expand Down
15 changes: 0 additions & 15 deletions src/CommonRuntime/StructuralInference.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,6 @@ open FSharp.Data.Runtime
open FSharp.Data.Runtime.StructuralTypes
open System.Text.RegularExpressions

/// This is the public inference mode enum with backward compatibility.
type InferenceMode =
/// Used as a default value for backward compatibility with the legacy InferTypesFromValues boolean static parameter.
/// The actual behaviour will depend on whether InferTypesFromValues is set to true (default) or false.
| BackwardCompatible = 0
/// Type everything as strings
/// (or the most basic type possible for the value when it's not string, e.g. for json numbers or booleans).
| NoInference = 1
/// Infer types from values only. Inline schemas are disabled.
| ValuesOnly = 2
/// Inline schemas types have the same weight as value infered types.
| ValuesAndInlineSchemasHints = 3
/// Inline schemas types override value infered types. (Value infered types are ignored if an inline schema is present)
| ValuesAndInlineSchemasOverrides = 4

/// This is the internal DU representing all the valid cases we support, mapped from the public InferenceMode.
[<Obsolete("This API will be made internal in a future release. Please file an issue at https://github.com/fsprojects/FSharp.Data/issues/1458 if you need this public.")>]
type InferenceMode' =
Expand Down
1 change: 1 addition & 0 deletions src/FSharp.Data.Http/FSharp.Data.Http.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<Tailcalls>true</Tailcalls>
</PropertyGroup>
<ItemGroup>
<Compile Include="PublicApi.fs" />
<Compile Include="..\Net\Http.fs" />
<Compile Include="..\CommonRuntime\IO.fs" />
<Compile Include="..\CommonRuntime\TextConversions.fs" />
Expand Down
17 changes: 17 additions & 0 deletions src/FSharp.Data.Http/PublicApi.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace FSharp.Data

/// This is the public inference mode enum used when initializing a type provider,
/// with backward compatibility.
type InferenceMode =
/// Used as a default value for backward compatibility with the legacy InferTypesFromValues boolean static parameter.
/// The actual behaviour will depend on whether InferTypesFromValues is set to true (default) or false.
| BackwardCompatible = 0
/// Type everything as strings
/// (or the most basic type possible for the value when it's not string, e.g. for json numbers or booleans).
| NoInference = 1
/// Infer types from values only. Inline schemas are disabled.
| ValuesOnly = 2
/// Inline schemas types have the same weight as value infered types.
| ValuesAndInlineSchemasHints = 3
/// Inline schemas types override value infered types. (Value infered types are ignored if an inline schema is present)
| ValuesAndInlineSchemasOverrides = 4
1 change: 1 addition & 0 deletions src/Xml/XmlProvider.fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ open FSharp.Core.CompilerServices
open ProviderImplementation
open ProviderImplementation.ProvidedTypes
open ProviderImplementation.ProviderHelpers
open FSharp.Data
open FSharp.Data.Runtime
open FSharp.Data.Runtime.BaseTypes
open FSharp.Data.Runtime.StructuralTypes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ open System.IO
open ProviderImplementation
open ProviderImplementation.ProvidedTypes
open ProviderImplementation.ProvidedTypesTesting
open FSharp.Data
open FSharp.Data.Runtime
open FSharp.Data.Runtime.StructuralInference

Expand Down