Skip to content

Commit 5639377

Browse files
committed
fix: removed JsonProperty decorators. Instructions now reflect .NET casing
1 parent 57ebb5b commit 5639377

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Unicorn.Contracts/ContractsService/Contract.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ public Address()
3939
{
4040
}
4141

42-
[JsonPropertyName("number")] public int Number { get; set; }
43-
[JsonPropertyName("street")] public string? Street { get; set; }
44-
[JsonPropertyName("city")] public string? City { get; set; }
45-
[JsonPropertyName("country")] public string Country { get; } = "USA";
42+
public int Number { get; set; }
43+
public string? Street { get; set; }
44+
public string? City { get; set; }
45+
public string Country { get; } = "USA";
4646

4747
public Dictionary<string, AttributeValue> ToMap()
4848
{
@@ -62,15 +62,15 @@ public Dictionary<string, AttributeValue> ToMap()
6262
/// </summary>
6363
public class CreateContractRequest
6464
{
65-
[JsonPropertyName("property_id")] public string? PropertyId { get; set; }
66-
[JsonPropertyName("address")] public Address? Address { get; set; }
67-
[JsonPropertyName("seller_name")] public string? SellerName { get; set; }
65+
public string? PropertyId { get; set; }
66+
public Address? Address { get; set; }
67+
public string? SellerName { get; set; }
6868
}
6969

7070
/// <summary>
7171
/// This class represents the structure of a request body to create a new contract.
7272
/// </summary>
7373
public class UpdateContractRequest
7474
{
75-
[JsonPropertyName("property_id")] public string? PropertyId { get; set; }
75+
public string? PropertyId { get; set; }
7676
}

0 commit comments

Comments
 (0)