Skip to content

Commit

Permalink
FIX: The type 'FoodService.Models.Dto.SsoDto' cannot have more than o…
Browse files Browse the repository at this point in the history
…ne member that has the attribute 'System.Text.Json.Serialization.JsonConstructorAttribute'
  • Loading branch information
NicolasBuscarini committed Jun 5, 2024
1 parent 3839a92 commit e6ea8e8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-nuget-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Build, Test, and Publish NuGet
uses: wahinekai/actions-publish-nuget@v3.0.1
with:
version: 1.1.3
version: 1.1.4
project-path: FoodService.Models/FoodService.Models.csproj
solution-path: FoodService.Models.sln
nuget-feed-password: ${{ secrets.PACKAGES_TOKEN }}
2 changes: 0 additions & 2 deletions FoodService.Models/Dto/SsoDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public SsoDto() { }
/// <summary>
/// Initializes a new instance of the <see cref="SsoDto"/> class.
/// </summary>
[JsonConstructor]
public SsoDto(string accessToken, DateTime expiration, List<string> roles)
{
AccessToken = accessToken;
Expand All @@ -49,7 +48,6 @@ public SsoDto(string accessToken, DateTime expiration, List<string> roles)
/// <summary>
/// Initializes a new instance of the <see cref="SsoDto"/> class.
/// </summary>
[JsonConstructor]
public SsoDto(string accessToken, DateTime expiration, List<string> roles, UserBase user)
{
AccessToken = accessToken;
Expand Down
2 changes: 1 addition & 1 deletion FoodService.Models/FoodService.Models.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<PackageId>FoodService.Models</PackageId>
<Version>1.1.3</Version>
<Version>1.1.4</Version>
<Authors>FoodService</Authors>
<Company>FoodService</Company>
<PackageDescription>A library for models in FoodService project</PackageDescription>
Expand Down

0 comments on commit e6ea8e8

Please sign in to comment.