-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added JsonConverters. * Fix analyzer errors. * Fixed tests.
- Loading branch information
Showing
13 changed files
with
736 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Json | ||
|
||
Provides System.Text.Json converters for LightResults. | ||
|
||
[![main](https://img.shields.io/github/actions/workflow/status/jscarle/LightResults.Extensions/main.yml?logo=github)](https://github.com/jscarle/LightResults.Extensions) | ||
[![nuget](https://img.shields.io/nuget/v/LightResults.Extensions.Json)](https://www.nuget.org/packages/LightResults.Extensions.Json) | ||
[![downloads](https://img.shields.io/nuget/dt/LightResults.Extensions.Json)](https://www.nuget.org/packages/LightResults.Extensions.Json) | ||
|
||
### Available converters | ||
|
||
- `ResultJsonConverter` | ||
- `ResultJsonConverter<TValue>` | ||
- `ResultJsonConverterFactory` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 46 additions & 40 deletions
86
...ightResults.Extensions.ExceptionHandling/LightResults.Extensions.ExceptionHandling.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,70 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<!-- Compilation --> | ||
<PropertyGroup> | ||
<RootNamespace>LightResults.Extensions.ExceptionHandling</RootNamespace> | ||
<TargetFrameworks>netstandard2.0;net6.0;net7.0;net8.0</TargetFrameworks> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<RootNamespace>LightResults.Extensions.ExceptionHandling</RootNamespace> | ||
<LangVersion>latest</LangVersion> | ||
</PropertyGroup> | ||
|
||
<!-- Analysis --> | ||
<PropertyGroup> | ||
<AnalysisLevel>latest-All</AnalysisLevel> | ||
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors> | ||
</PropertyGroup> | ||
|
||
<!-- References --> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'"> | ||
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.0"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="LightResults" Version="8.0.9"/> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/> | ||
</ItemGroup> | ||
|
||
<!-- Output --> | ||
<PropertyGroup> | ||
<AssemblyName>LightResults.Extensions.ExceptionHandling</AssemblyName> | ||
<Version>8.0.2</Version> | ||
<AssemblyVersion>8.0.2.0</AssemblyVersion> | ||
<FileVersion>8.0.2.0</FileVersion> | ||
<NeutralLanguage>en-US</NeutralLanguage> | ||
<Optimize>true</Optimize> | ||
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible> | ||
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile> | ||
</PropertyGroup> | ||
|
||
<!-- Package --> | ||
<PropertyGroup> | ||
<IsPackable>true</IsPackable> | ||
<PackageId>LightResults.Extensions.ExceptionHandling</PackageId> | ||
<Title>LightResults.Extensions.ExceptionHandling</Title> | ||
<Authors>Jean-Sebastien Carle</Authors> | ||
<Description>Exception handling for LightResults.</Description> | ||
<Copyright>Copyright © Jean-Sebastien Carle 2024</Copyright> | ||
<PackageId>LightResults.Extensions.ExceptionHandling</PackageId> | ||
<PackageProjectUrl>https://github.com/jscarle/LightResults.Extensions</PackageProjectUrl> | ||
<PackageLicenseFile>LICENSE.md</PackageLicenseFile> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<PackageIcon>Icon.png</PackageIcon> | ||
<PackageProjectUrl>https://github.com/jscarle/LightResults.Extensions</PackageProjectUrl> | ||
<PackageTags>result results pattern lightresults exception handling</PackageTags> | ||
<RepositoryUrl>https://github.com/jscarle/LightResults.Extensions</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<PackageTags>result results pattern lightresults exception handling</PackageTags> | ||
<AssemblyVersion>8.0.2.0</AssemblyVersion> | ||
<FileVersion>8.0.2.0</FileVersion> | ||
<NeutralLanguage>en-US</NeutralLanguage> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
<AnalysisLevel>latest-All</AnalysisLevel> | ||
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors> | ||
<Authors>Jean-Sebastien Carle</Authors> | ||
<Copyright>Copyright © Jean-Sebastien Carle 2024</Copyright> | ||
<PackageLicenseFile>LICENSE.md</PackageLicenseFile> | ||
<PackageIcon>Icon.png</PackageIcon> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible> | ||
<Optimize>true</Optimize> | ||
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<InternalsVisibleTo Include="LightResults.Extensions.Tests"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'"> | ||
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.0"/> | ||
<None Include="..\..\README.md" Pack="true" PackagePath="\" Visible="false"/> | ||
<None Include="..\..\LICENSE.md" Pack="true" PackagePath="\" Visible="false"/> | ||
<None Include="..\..\Icon.png" Pack="true" PackagePath="\" Visible="false"/> | ||
</ItemGroup> | ||
|
||
<!-- Testing --> | ||
<ItemGroup> | ||
<PackageReference Include="LightResults" Version="8.0.9"/> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/> | ||
<None Include="..\..\LICENSE.md"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
<Visible>False</Visible> | ||
</None> | ||
<None Include="README.md"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
<Visible>False</Visible> | ||
</None> | ||
<None Include="..\..\Icon.png"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
<Visible>False</Visible> | ||
</None> | ||
<InternalsVisibleTo Include="LightResults.Extensions.Tests"/> | ||
</ItemGroup> | ||
|
||
</Project> |
64 changes: 64 additions & 0 deletions
64
src/LightResults.Extensions.Json/LightResults.Extensions.Json.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<!-- Compilation --> | ||
<PropertyGroup> | ||
<RootNamespace>LightResults.Extensions.Json</RootNamespace> | ||
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<LangVersion>latest</LangVersion> | ||
</PropertyGroup> | ||
|
||
<!-- Analysis --> | ||
<PropertyGroup> | ||
<AnalysisLevel>latest-All</AnalysisLevel> | ||
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors> | ||
</PropertyGroup> | ||
|
||
<!-- References --> | ||
<ItemGroup> | ||
<PackageReference Include="LightResults" Version="8.0.9"/> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/> | ||
</ItemGroup> | ||
|
||
<!-- Output --> | ||
<PropertyGroup> | ||
<Version>8.0.0</Version> | ||
<AssemblyVersion>8.0.0.0</AssemblyVersion> | ||
<FileVersion>8.0.0.0</FileVersion> | ||
<NeutralLanguage>en-US</NeutralLanguage> | ||
<Optimize>true</Optimize> | ||
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile> | ||
</PropertyGroup> | ||
|
||
<!-- Package --> | ||
<PropertyGroup> | ||
<IsPackable>true</IsPackable> | ||
<PackageId>LightResults.Extensions.Json</PackageId> | ||
<Title>LightResults.Extensions.Json</Title> | ||
<Description>System.Text.Json converters for LightResults.</Description> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<PackageProjectUrl>https://github.com/jscarle/LightResults.Extensions</PackageProjectUrl> | ||
<PackageTags>result results pattern lightresults system-text-json json-converter</PackageTags> | ||
<RepositoryUrl>https://github.com/jscarle/LightResults.Extensions</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<Authors>Jean-Sebastien Carle</Authors> | ||
<Copyright>Copyright © Jean-Sebastien Carle 2024</Copyright> | ||
<PackageLicenseFile>LICENSE.md</PackageLicenseFile> | ||
<PackageIcon>Icon.png</PackageIcon> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\README.md" Pack="true" PackagePath="\" Visible="false"/> | ||
<None Include="..\..\LICENSE.md" Pack="true" PackagePath="\" Visible="false"/> | ||
<None Include="..\..\Icon.png" Pack="true" PackagePath="\" Visible="false"/> | ||
</ItemGroup> | ||
|
||
<!-- Testing --> | ||
<ItemGroup> | ||
<InternalsVisibleTo Include="LightResults.Extensions.Tests"/> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.