Skip to content

Commit 531e44e

Browse files
authored
Merge pull request #2 from darthfabar/development
[FIX] nullable warnings decreased + github links fixed
2 parents 444bedc + 4cdebfc commit 531e44e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
<Copyright>Copyright © . All rights Reserved</Copyright>
1414
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
1515
<PackageLicenseExpression>MIT</PackageLicenseExpression>
16-
<PackageProjectUrl>https://github.com/darthfabar/ContractModelAttributeChecks</PackageProjectUrl>
17-
<RepositoryUrl>https://github.com/darthfabar/ContractModelAttributeChecks.git</RepositoryUrl>
16+
<PackageProjectUrl>https://github.com/darthfabar/ContractModelsAttributeCheck</PackageProjectUrl>
17+
<RepositoryUrl>https://github.com/darthfabar/ContractModelsAttributeCheck.git</RepositoryUrl>
1818
<RepositoryType>git</RepositoryType>
19-
<PackageReleaseNotes>https://github.com/darthfabar/ContractModelAttributeChecks/releases</PackageReleaseNotes>
19+
<PackageReleaseNotes>https://github.com/darthfabar/ContractModelsAttributeCheck/releases</PackageReleaseNotes>
2020
</PropertyGroup>
2121

2222
<ItemGroup Label="Package References">

Examples/SampleWebApp/Contract/V1/Product.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace SampleWebApp.Contract.V1
33
public class Product
44
{
55
public int Id { get; internal set; }
6-
public string Name { get; set; }
6+
public string Name { get; set; } = string.Empty;
77
}
88

99
public class PagingParameters
@@ -15,13 +15,13 @@ public class PagingParameters
1515

1616
public class ProductCreate
1717
{
18-
public string Name { get; set; }
18+
public string Name { get; set; } = string.Empty;
1919
}
2020

2121
public class ErrorResponse
2222
{
2323
public int StatusCode { get; set; }
2424

25-
public string Message { get; set; }
25+
public string Message { get; set; } = string.Empty;
2626
}
2727
}

Examples/SampleWebApp/Contract/V2/Product.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class ProductV2
77
[JsonPropertyName("id")]
88
public int Id { get; internal set; }
99
[JsonPropertyName("name")]
10-
public string Name { get; set; }
10+
public string Name { get; set; } = string.Empty;
1111
}
1212

1313
public class PagingParametersV2
@@ -22,7 +22,7 @@ public class PagingParametersV2
2222
public class ProductCreateV2
2323
{
2424
[JsonPropertyName("name")]
25-
public string Name { get; set; }
25+
public string Name { get; set; } = string.Empty;
2626
}
2727

2828
public class ErrorResponseV2
@@ -31,6 +31,6 @@ public class ErrorResponseV2
3131
public int StatusCode { get; set; }
3232

3333
[JsonPropertyName("message")]
34-
public string Message { get; set; }
34+
public string Message { get; set; } = string.Empty;
3535
}
3636
}

0 commit comments

Comments
 (0)