Skip to content

Commit fa381b5

Browse files
authored
Merge pull request #49 from PandaTechAM/development
updated example
2 parents 9e65715 + 4ac29ae commit fa381b5

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed
Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
1-
namespace ResponseCrafter.Dtos;
1+
using System.ComponentModel;
2+
3+
namespace ResponseCrafter.Dtos;
24

35
public class ErrorResponse
46
{
7+
[DefaultValue("0HN8FG4CDDD6R:00000003")]
58
public required string RequestId { get; set; }
9+
10+
[DefaultValue("b224190af31b6eb950ce4b84c9d44fae")]
611
public required string TraceId { get; set; }
12+
13+
[DefaultValue("POST - localhost/users")]
714
public required string Instance { get; set; }
15+
16+
[DefaultValue(400)]
817
public int StatusCode { get; init; }
18+
19+
[DefaultValue("BadRequestException")]
920
public required string Type { get; set; }
21+
22+
[DefaultValue(null)]
1023
public Dictionary<string, string>? Errors { get; set; }
24+
25+
[DefaultValue("duplicate_user")]
1126
public required string Message { get; set; }
1227
}

src/ResponseCrafter/ResponseCrafter.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
<Copyright>MIT</Copyright>
99
<PackageIcon>pandatech.png</PackageIcon>
1010
<PackageReadmeFile>Readme.md</PackageReadmeFile>
11-
<Version>5.0.2</Version>
11+
<Version>5.0.3</Version>
1212
<PackageId>Pandatech.ResponseCrafter</PackageId>
1313
<PackageTags>Pandatech, library, exception handler, exception, middleware, Api response</PackageTags>
1414
<Title>ResponseCrafter</Title>
1515
<Description>Handling exceptions, custom Dtos.</Description>
1616
<RepositoryUrl>https://github.com/PandaTechAM/be-lib-response-crafter</RepositoryUrl>
17-
<PackageReleaseNotes>NuGet update</PackageReleaseNotes>
17+
<PackageReleaseNotes>Example value added</PackageReleaseNotes>
1818
</PropertyGroup>
1919

2020
<ItemGroup>

test/ResponseCrafter.Demo/ResponseCrafter.Demo.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<ItemGroup>
1111
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.0" />
12-
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.0.0" />
12+
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.1.0" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

0 commit comments

Comments
 (0)