Skip to content

Commit

Permalink
feat: Updated OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 13, 2024
1 parent 0f5e76b commit 861df9d
Show file tree
Hide file tree
Showing 32 changed files with 1,293 additions and 5 deletions.
46 changes: 46 additions & 0 deletions src/libs/Tripo/Generated/OneOf.9.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -566,5 +566,51 @@ public override bool Equals(object? obj)
{
return obj is OneOf<T1, T2, T3, T4, T5, T6, T7, T8, T9> o && Equals(o);
}


public string ToJson(

Check warning on line 571 in src/libs/Tripo/Generated/OneOf.9.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'OneOf<T1, T2, T3, T4, T5, T6, T7, T8, T9>.ToJson(JsonSerializerContext)'
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public string ToJson(

Check warning on line 584 in src/libs/Tripo/Generated/OneOf.9.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'OneOf<T1, T2, T3, T4, T5, T6, T7, T8, T9>.ToJson(JsonSerializerOptions?)'
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

public static global::Tripo.OneOf<T1, T2, T3, T4, T5, T6, T7, T8, T9>? FromJson(

Check warning on line 592 in src/libs/Tripo/Generated/OneOf.9.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'OneOf<T1, T2, T3, T4, T5, T6, T7, T8, T9>.FromJson(string, JsonSerializerContext)'
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Tripo.OneOf<T1, T2, T3, T4, T5, T6, T7, T8, T9>),
jsonSerializerContext) as global::Tripo.OneOf<T1, T2, T3, T4, T5, T6, T7, T8, T9>?;
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::Tripo.OneOf<T1, T2, T3, T4, T5, T6, T7, T8, T9>? FromJson(

Check warning on line 606 in src/libs/Tripo/Generated/OneOf.9.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'OneOf<T1, T2, T3, T4, T5, T6, T7, T8, T9>.FromJson(string, JsonSerializerOptions?)'
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Tripo.OneOf<T1, T2, T3, T4, T5, T6, T7, T8, T9>>(
json,
jsonSerializerOptions);
}

}
}
46 changes: 46 additions & 0 deletions src/libs/Tripo/Generated/Tripo.Models.Balance.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,51 @@ public sealed partial class Balance
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();


public string ToJson(

Check warning on line 32 in src/libs/Tripo/Generated/Tripo.Models.Balance.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'Balance.ToJson(JsonSerializerContext)'
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public string ToJson(

Check warning on line 45 in src/libs/Tripo/Generated/Tripo.Models.Balance.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'Balance.ToJson(JsonSerializerOptions?)'
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

public static global::Tripo.Balance? FromJson(

Check warning on line 53 in src/libs/Tripo/Generated/Tripo.Models.Balance.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'Balance.FromJson(string, JsonSerializerContext)'
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Tripo.Balance),
jsonSerializerContext) as global::Tripo.Balance;
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::Tripo.Balance? FromJson(

Check warning on line 67 in src/libs/Tripo/Generated/Tripo.Models.Balance.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'Balance.FromJson(string, JsonSerializerOptions?)'
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Tripo.Balance>(
json,
jsonSerializerOptions);
}

}
}
46 changes: 46 additions & 0 deletions src/libs/Tripo/Generated/Tripo.Models.BalanceData.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,51 @@ public sealed partial class BalanceData
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();


public string ToJson(

Check warning on line 32 in src/libs/Tripo/Generated/Tripo.Models.BalanceData.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'BalanceData.ToJson(JsonSerializerContext)'
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public string ToJson(

Check warning on line 45 in src/libs/Tripo/Generated/Tripo.Models.BalanceData.g.cs

View workflow job for this annotation

GitHub Actions / Test / Build, test and publish

Missing XML comment for publicly visible type or member 'BalanceData.ToJson(JsonSerializerOptions?)'
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

public static global::Tripo.BalanceData? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Tripo.BalanceData),
jsonSerializerContext) as global::Tripo.BalanceData;
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::Tripo.BalanceData? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Tripo.BalanceData>(
json,
jsonSerializerOptions);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,51 @@ public sealed partial class CreateTaskRequestVariant1
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();


public string ToJson(
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

public static global::Tripo.CreateTaskRequestVariant1? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Tripo.CreateTaskRequestVariant1),
jsonSerializerContext) as global::Tripo.CreateTaskRequestVariant1;
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::Tripo.CreateTaskRequestVariant1? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Tripo.CreateTaskRequestVariant1>(
json,
jsonSerializerOptions);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,51 @@ public sealed partial class CreateTaskRequestVariant2
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();


public string ToJson(
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

public static global::Tripo.CreateTaskRequestVariant2? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Tripo.CreateTaskRequestVariant2),
jsonSerializerContext) as global::Tripo.CreateTaskRequestVariant2;
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::Tripo.CreateTaskRequestVariant2? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Tripo.CreateTaskRequestVariant2>(
json,
jsonSerializerOptions);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,51 @@ public sealed partial class CreateTaskRequestVariant2File
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();


public string ToJson(
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

public static global::Tripo.CreateTaskRequestVariant2File? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Tripo.CreateTaskRequestVariant2File),
jsonSerializerContext) as global::Tripo.CreateTaskRequestVariant2File;
}

#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::Tripo.CreateTaskRequestVariant2File? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Tripo.CreateTaskRequestVariant2File>(
json,
jsonSerializerOptions);
}

}
}
Loading

0 comments on commit 861df9d

Please sign in to comment.