-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TimeSpan support and enhance enum strategy handling
Introduced a nullable TimeSpan property to Order.cs and updated Helpers.cs for TimeSpan type mapping. Also improved enum strategy handling in GenerateClientAsync to check for null values.
- Loading branch information
Magnus Ahlberg
committed
Aug 6, 2024
1 parent
570574d
commit 11d776d
Showing
9 changed files
with
238 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 changes: 95 additions & 0 deletions
95
test/Linq2GraphQL.TestClient/Generated/Inputs/TimeSpanOperationFilterInput.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using Linq2GraphQL.Client; | ||
|
||
namespace Linq2GraphQL.TestClient; | ||
|
||
[JsonConverter(typeof(GraphInputConverter<TimeSpanOperationFilterInput>))] | ||
public partial class TimeSpanOperationFilterInput : GraphInputBase | ||
{ | ||
[JsonPropertyName("eq")] | ||
public TimeSpan? Eq | ||
{ | ||
get => GetValue<TimeSpan?>("eq"); | ||
set => SetValue("eq", value); | ||
} | ||
|
||
[JsonPropertyName("neq")] | ||
public TimeSpan? Neq | ||
{ | ||
get => GetValue<TimeSpan?>("neq"); | ||
set => SetValue("neq", value); | ||
} | ||
|
||
[JsonPropertyName("in")] | ||
public List<TimeSpan?> In | ||
{ | ||
get => GetValue<List<TimeSpan?>>("in"); | ||
set => SetValue("in", value); | ||
} | ||
|
||
[JsonPropertyName("nin")] | ||
public List<TimeSpan?> Nin | ||
{ | ||
get => GetValue<List<TimeSpan?>>("nin"); | ||
set => SetValue("nin", value); | ||
} | ||
|
||
[JsonPropertyName("gt")] | ||
public TimeSpan? Gt | ||
{ | ||
get => GetValue<TimeSpan?>("gt"); | ||
set => SetValue("gt", value); | ||
} | ||
|
||
[JsonPropertyName("ngt")] | ||
public TimeSpan? Ngt | ||
{ | ||
get => GetValue<TimeSpan?>("ngt"); | ||
set => SetValue("ngt", value); | ||
} | ||
|
||
[JsonPropertyName("gte")] | ||
public TimeSpan? Gte | ||
{ | ||
get => GetValue<TimeSpan?>("gte"); | ||
set => SetValue("gte", value); | ||
} | ||
|
||
[JsonPropertyName("ngte")] | ||
public TimeSpan? Ngte | ||
{ | ||
get => GetValue<TimeSpan?>("ngte"); | ||
set => SetValue("ngte", value); | ||
} | ||
|
||
[JsonPropertyName("lt")] | ||
public TimeSpan? Lt | ||
{ | ||
get => GetValue<TimeSpan?>("lt"); | ||
set => SetValue("lt", value); | ||
} | ||
|
||
[JsonPropertyName("nlt")] | ||
public TimeSpan? Nlt | ||
{ | ||
get => GetValue<TimeSpan?>("nlt"); | ||
set => SetValue("nlt", value); | ||
} | ||
|
||
[JsonPropertyName("lte")] | ||
public TimeSpan? Lte | ||
{ | ||
get => GetValue<TimeSpan?>("lte"); | ||
set => SetValue("lte", value); | ||
} | ||
|
||
[JsonPropertyName("nlte")] | ||
public TimeSpan? Nlte | ||
{ | ||
get => GetValue<TimeSpan?>("nlte"); | ||
set => SetValue("nlte", value); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters