Morphir.Myriad.SystemTextJson.Annotations 0.5.0-alpha.7

Prefix Reserved
This is a prerelease version of Morphir.Myriad.SystemTextJson.Annotations.
dotnet add package Morphir.Myriad.SystemTextJson.Annotations --version 0.5.0-alpha.7
                    
NuGet\Install-Package Morphir.Myriad.SystemTextJson.Annotations -Version 0.5.0-alpha.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Morphir.Myriad.SystemTextJson.Annotations" Version="0.5.0-alpha.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Morphir.Myriad.SystemTextJson.Annotations" Version="0.5.0-alpha.7" />
                    
Directory.Packages.props
<PackageReference Include="Morphir.Myriad.SystemTextJson.Annotations" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Morphir.Myriad.SystemTextJson.Annotations --version 0.5.0-alpha.7
                    
#r "nuget: Morphir.Myriad.SystemTextJson.Annotations, 0.5.0-alpha.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Morphir.Myriad.SystemTextJson.Annotations@0.5.0-alpha.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Morphir.Myriad.SystemTextJson.Annotations&version=0.5.0-alpha.7&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Morphir.Myriad.SystemTextJson.Annotations&version=0.5.0-alpha.7&prerelease
                    
Install as a Cake Tool

Morphir.Myriad.SystemTextJson.Annotations

Attributes and options for Morphir.Myriad.SystemTextJson, a Myriad plugin that generates trim-safe and Native AOT-safe System.Text.Json converters and contexts for F# records, unions and enums at build time.

This package has no dependency and targets netstandard2.0. Nothing in it runs: the generator reads the attributes from the F# source at build time.

open Morphir.Myriad.SystemTextJson

[<JsonUnion(BaseEncoding = (JsonUnionEncoding.InternalTag ||| JsonUnionEncoding.NamedFields), TagName = "kind")>]
type Shape =
    | [<JsonName "circle">] Circle of radius: float
    | [<JsonName "square">] Square of side: float
Attribute Use
JsonUnion The encoding of one union: base encoding and flags, tag and fields names, naming.
JsonRecord The member rules of one record: naming, skippable options, unknown members, null fields.
JsonName The JSON name of a case or field. More names are accepted when reading.
JsonParsedValue A type that is written as text and read only through its parser.
JsonIgnoreType Leave a type out of the context.
JsonDefaultValue A string, Boolean or numeric literal for an absent record member.
JsonDefaultEmpty An empty sequence or map for an absent member.
JsonDefaultValueProvider A direct call to an accessible static method with no arguments, returning the field's type.
JsonDefaultJson An explicit JSON-literal default read through the generated field codec.
JsonOmitEmpty Leave an empty record collection out on writing.
JsonOmitDefault Leave a Boolean record field out on writing when it equals its JsonDefaultValue.
JsonVersionAlias Read one exact legacy member/version pair and normalize it to the current form.
JsonKnownPaths Require every critical path in a string collection to match the exact allowlist.

Scalar strings are ordinary values, without JSON quoting. Decimal and domain defaults can use JsonDefaultValueProvider(typeof<Defaults>, nameof Defaults.Create); provider code runs only for an absent member at deserialization, and the generated call is checked by the F# compiler. It does not use reflection. Each field can declare only one default. Explicit null retains the field's normal rules.

The generator also supports System.Text.Json's JsonPropertyName and JsonExtensionData attributes; extension data requires a string-keyed JsonElement map record field. Unknown members are preserved beside the named members without a wrapper. New member rules are opt-in; unannotated fields retain their encodings and required-member checks.

The union encodings use the names and meanings of FSharp.SystemTextJson. See the Morphir.Myriad.SystemTextJson guide for the full reference.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Morphir.Myriad.SystemTextJson.Annotations:

Package Downloads
Morphir.Mep

Shared Morphir Extension Protocol messages and transports

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.0-alpha.7 96 12/2/2026
0.5.0-alpha.6 105 11/30/2026
0.5.0-alpha.5 111 11/22/2026
0.5.0-alpha.4 108 11/16/2026
0.5.0-alpha.3 113 11/14/2026
0.5.0-alpha.2 113 11/13/2026
0.5.0-alpha.1 110 11/13/2026
0.4.0-alpha.5 104 11/13/2026
0.4.0-alpha.4 90 11/10/2026
0.4.0-alpha.3 95 11/9/2026
0.4.0-alpha.2 63 11/8/2026

### Added

- `morphirup setup`, `show`, `select` and `run` now support GNU/Linux x64 (`linux-x64`) and ARM64 (`linux-arm64`) toolchains packaged as `tar.gz` archives (`morphir`, `morphir-fsharp-frontend`, `morphir-fsharp-backend`) with ELF64 little-endian header validation (`ET_EXEC` or `ET_DYN` PIE, `EM_X86_64` / `EM_AARCH64`) and native `.so` runtime closure checks (`libhostfxr.so`, `libhostpolicy.so`, `libcoreclr.so`). Musl Linux (`linux-musl-x64`, `linux-musl-arm64`) and Intel macOS (`osx-x64`) remain refused. `PackWindowsToolchain`, `ReleaseAssets.WindowsToolchainPlatforms`, `morphirup-build.yml` (under `toolchain: true`) and `deployment.yml` now pack, verify and checksum all five toolchain platforms (`win-x64`, `win-arm64`, `osx-arm64`, `linux-x64`, `linux-arm64`).

### Changed

- The composed local-toolchains family moves from `0.1.0-preview.5` to `0.1.0-preview.6` ([finos/morphir#1216](https://github.com/finos/morphir/pull/1216), pinned at `7b8e6a28`), adding `linux-x64` and `linux-arm64` with `tar-gzip` archives and the `morphir` entry point. The producer writes `preview.6` and `morphirup` reads `preview.6` only: `select`, `show` and `run` refuse Homes set up with `preview.2` through `preview.5` with `local.setup_required`, and `setup --yes` admits earlier generations unread and installs `preview.6` beside them. A refused `setup`, `select` or `show` writes a `preview.6` result. The historical `preview.1` local route is unchanged.