Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HttpStatusCode field added #43

Merged
merged 4 commits into from Jan 23, 2024
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions Origam.Service.Core/Origam.Service.Core.csproj
Expand Up @@ -8,14 +8,14 @@
<PackageLicenseUrl></PackageLicenseUrl>
<RepositoryUrl>https://github.com/origam/service-core</RepositoryUrl>
<PackageTags>origam</PackageTags>
<AssemblyVersion>2.2.2</AssemblyVersion>
<FileVersion>2.2.2</FileVersion>
<AssemblyVersion>2.3.1</AssemblyVersion>
<FileVersion>2.3.1</FileVersion>
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
<PackageIcon>origam-icon-large.png</PackageIcon>
<SignAssembly>false</SignAssembly>
<Authors>origam</Authors>
<PackageVersion>2.2.2</PackageVersion>
<Version>2.2.2</Version>
<PackageVersion>2.3.1</PackageVersion>
<Version>2.3.1</Version>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>10</LangVersion>
</PropertyGroup>
Expand Down Expand Up @@ -46,6 +46,7 @@
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

</Project>
6 changes: 5 additions & 1 deletion Origam.Service.Core/RuleExceptionData.cs
Expand Up @@ -19,6 +19,7 @@
*/
#endregion

using Newtonsoft.Json;
using System;

namespace Origam.Service.Core
Expand Down Expand Up @@ -56,6 +57,9 @@ public RuleExceptionData(string message)
public string FieldName = "";
public string EntityName = "";
public string Message = "";
[JsonIgnore]
public int HttpStatusCode = 400;
public RuleExceptionSeverity Severity;
}

}
}