Skip to content

Commit 4152247

Browse files
author
github-actions[bot]
committed
feat: Updated OpenAPI spec
1 parent 43beb35 commit 4152247

4,099 files changed

Lines changed: 227879 additions & 102150 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/libs/tryAGI.OpenAI/Generated/AllOf.2.g.cs

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,37 +28,36 @@ namespace tryAGI.OpenAI
2828
/// <summary>
2929
///
3030
/// </summary>
31-
public static implicit operator AllOf<T1, T2>(T1 value) => new AllOf<T1, T2>((T1?)value);
31+
#if NET6_0_OR_GREATER
32+
public T2? Value2 { get; init; }
33+
#else
34+
public T2? Value2 { get; }
35+
#endif
3236

3337
/// <summary>
3438
///
3539
/// </summary>
36-
public static implicit operator T1?(AllOf<T1, T2> @this) => @this.Value1;
37-
40+
#if NET6_0_OR_GREATER
41+
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
42+
#endif
43+
public bool IsValue2 => Value2 != null;
3844
/// <summary>
3945
///
4046
/// </summary>
41-
public AllOf(T1? value)
42-
{
43-
Value1 = value;
44-
}
47+
public static implicit operator AllOf<T1, T2>(T1 value) => new AllOf<T1, T2>((T1?)value);
4548

4649
/// <summary>
4750
///
4851
/// </summary>
49-
#if NET6_0_OR_GREATER
50-
public T2? Value2 { get; init; }
51-
#else
52-
public T2? Value2 { get; }
53-
#endif
52+
public static implicit operator T1?(AllOf<T1, T2> @this) => @this.Value1;
5453

5554
/// <summary>
5655
///
5756
/// </summary>
58-
#if NET6_0_OR_GREATER
59-
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
60-
#endif
61-
public bool IsValue2 => Value2 != null;
57+
public AllOf(T1? value)
58+
{
59+
Value1 = value;
60+
}
6261

6362
/// <summary>
6463
///

src/libs/tryAGI.OpenAI/Generated/AnyOf.1.Json.g.cs

Lines changed: 0 additions & 92 deletions
This file was deleted.

src/libs/tryAGI.OpenAI/Generated/AnyOf.1.g.cs

Lines changed: 0 additions & 159 deletions
This file was deleted.

src/libs/tryAGI.OpenAI/Generated/AnyOf.2.g.cs

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,37 +28,36 @@ namespace tryAGI.OpenAI
2828
/// <summary>
2929
///
3030
/// </summary>
31-
public static implicit operator AnyOf<T1, T2>(T1 value) => new AnyOf<T1, T2>((T1?)value);
31+
#if NET6_0_OR_GREATER
32+
public T2? Value2 { get; init; }
33+
#else
34+
public T2? Value2 { get; }
35+
#endif
3236

3337
/// <summary>
3438
///
3539
/// </summary>
36-
public static implicit operator T1?(AnyOf<T1, T2> @this) => @this.Value1;
37-
40+
#if NET6_0_OR_GREATER
41+
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
42+
#endif
43+
public bool IsValue2 => Value2 != null;
3844
/// <summary>
3945
///
4046
/// </summary>
41-
public AnyOf(T1? value)
42-
{
43-
Value1 = value;
44-
}
47+
public static implicit operator AnyOf<T1, T2>(T1 value) => new AnyOf<T1, T2>((T1?)value);
4548

4649
/// <summary>
4750
///
4851
/// </summary>
49-
#if NET6_0_OR_GREATER
50-
public T2? Value2 { get; init; }
51-
#else
52-
public T2? Value2 { get; }
53-
#endif
52+
public static implicit operator T1?(AnyOf<T1, T2> @this) => @this.Value1;
5453

5554
/// <summary>
5655
///
5756
/// </summary>
58-
#if NET6_0_OR_GREATER
59-
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
60-
#endif
61-
public bool IsValue2 => Value2 != null;
57+
public AnyOf(T1? value)
58+
{
59+
Value1 = value;
60+
}
6261

6362
/// <summary>
6463
///

0 commit comments

Comments
 (0)