JsonSchemaProvider 0.1.2
dotnet add package JsonSchemaProvider --version 0.1.2
NuGet\Install-Package JsonSchemaProvider -Version 0.1.2
<PackageReference Include="JsonSchemaProvider" Version="0.1.2" />
<PackageVersion Include="JsonSchemaProvider" Version="0.1.2" />
<PackageReference Include="JsonSchemaProvider" />
paket add JsonSchemaProvider --version 0.1.2
#r "nuget: JsonSchemaProvider, 0.1.2"
#:package JsonSchemaProvider@0.1.2
#addin nuget:?package=JsonSchemaProvider&version=0.1.2
#tool nuget:?package=JsonSchemaProvider&version=0.1.2
JsonSchemaProvider: F# type provider for JSON schema
The JsonSchemaProvider provides F# types from JSON schemas. It can be used to build JSON values in a strongly typed way that conform to the schema or to parse JSON values into an F# value that can be queried in a strongly typed way. Specifications like numeric ranges or string patterns that cannot be validated at compile time are checked at runtime.
The JSON schema can either be given as an inline string literal or by a local file.
The type provider is built around NJsonSchema for the schema parsing and validation
and uses the JsonValue data type from FSharp.Data.
The version history is kept in the changelog.
See the documentation for instructions and examples how to use the type provider.
Building
The type provider requires the .NET SDK 8 or higher.
The code comes with a Dev Container specification that sets up the necessary tools and the .NET SDK.
When not inside the Dev Container, issue a
dotnet tool restore
to install the .NET tools listed in dotnet-tools.json.
The code is built using FAKE as follows.
On Linux/macOS:
./build.sh
On Windows:
build.cmd
The FAKE build script is based on MiniScaffold and provides most of its build targets. The list of available targets can be obtained by
./build.sh ListTargets
Environment Variables
CONFIGURATIONwill set the configuration of the dotnet commands. If not set, it will default to Release.CONFIGURATION=Debug ./build.shwill result in-cadditions to commands such as indotnet build -c Debug
Debugging
Debugging type providers requires to run the FSharp compiler or interpreter on a source file using the type provider since the provider's code is executed in the compilation pipeline. See the comments in debugUtils/debug.fsx how to launch the code in the Ionide debugger.
License
The JSON schema type provider is available under the MIT license. For more information see license file.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- FSharp.Core (>= 10.0.101)
- FSharp.Data.Json.Core (>= 6.6.0)
- Newtonsoft.Json (>= 13.0.4)
- NJsonSchema (>= 11.5.2)
- System.Text.Encodings.Web (>= 10.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.2 | 92 | 12/27/2025 |
| 0.1.1 | 83 | 12/27/2025 |
| 0.1.0 | 281 | 5/28/2024 |
| 0.1.0-pre.5 | 113 | 5/25/2024 |
| 0.1.0-pre.4 | 288 | 10/18/2023 |
| 0.1.0-pre.3 | 146 | 10/17/2023 |
## [0.1.2] - 2025-12-27
[0.1.2]: https://github.com/florenzen/JsonSchemaProvider/releases/tag/v0.1.2
### Changed
- Update to .NET 10.