Maple.Result 1.0.36

Additional Details

Updated docs.

There is a newer version of this package available.
See the version list below for details.
dotnet add package Maple.Result --version 1.0.36
                    
NuGet\Install-Package Maple.Result -Version 1.0.36
                    
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="Maple.Result" Version="1.0.36" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Maple.Result" Version="1.0.36" />
                    
Directory.Packages.props
<PackageReference Include="Maple.Result" />
                    
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 Maple.Result --version 1.0.36
                    
#r "nuget: Maple.Result, 1.0.36"
                    
#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 Maple.Result@1.0.36
                    
#: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=Maple.Result&version=1.0.36
                    
Install as a Cake Addin
#tool nuget:?package=Maple.Result&version=1.0.36
                    
Install as a Cake Tool

Result

An abstraction which contains the value or the error of the operation. It can be mapped to the HTTP reponse if needed.

Project status: EARLY STAGE

Why

I decided to create a new implementation to address a few missing functionalities in other libraries (e.g., i18n, support for more precise error descriptions) and to better follow industry standards (RFC 9457).

Error Response

Example

{
    "type": "https://example.com/probs/out-of-credit", 
    "status": 400,
    "title": "You do not have enough credit.",
    "detail": "Your current balance is 30, but that costs 50.",
    "instance": "/accounts/12345/msgs/abc",
    "errors": [
        {
            "pointer": "#/age",
            "detail": "must be a positive integer",
            "detailTemplate": {
                "messageId":"user.details.age.mustBePositive"
            }
        },
        {
            "pointer": "#/profile/colour",
            "detail": "must be ‘green’, ‘red’ or ‘blue’",
            "detailTemplate": {
                "messageId": "user.profile.colour",
                "params": {
                    "validValueIds": [
                        "user.profile.colour.green",
                        "user.profile.colour.red",
                        "user.profile.colour.blue"
                    ]
                }
            }
        }
    ],
    "detailTemplate": {
        "messageId": "user.account.balance.tooLow",
        "params": {
            "errorCode": "UAB17",
            "accounts": [
                {
                    "title": "Main (***9456)",
                    "url": "/accounts/12345"
                },
                {
                    "title": "Main (***3357)",
                    "url": "/accounts/67890"
                }
            ],
            "currentBalance": 30,
            "requiredBalance": 50
        }
    }
}

Contribution

Please contact author: tom.maple(at)outlook.com

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Maple.Result:

Package Downloads
Maple.Result.Extensions.HttpClient

A collection of extension methods to map HttpClient’s HttpResponseMessage to Maple.Result.

Maple.Result.Extensions.AspNetCore

Provides mapping of the Maple.Result to the ASP.NET Core ActionResult.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.39.1 193 3/10/2026
1.38.16 251 3/6/2026
1.38.14 92 3/5/2026
1.38.9 118 3/2/2026
1.38.7 118 2/28/2026
1.38.0 98 2/27/2026
1.36.0 89 2/27/2026
1.35.0 230 2/19/2026
1.32.0 90 2/19/2026
1.28.0 103 2/12/2026
1.24.9 100 1/30/2026
1.0.80 98 1/30/2026
1.0.75 97 1/29/2026
1.0.72 97 1/29/2026
1.0.42 106 1/21/2026
1.0.40 95 1/21/2026
1.0.38 90 1/21/2026
1.0.36 109 1/21/2026 1.0.36 is deprecated.
1.0.33 118 1/16/2026 1.0.33 is deprecated.
1.0.28 146 1/16/2026 1.0.28 is deprecated.
Loading failed