Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ namespace TypeSafeAI.Generated

typeof(global::TypeSafeAI.Generated.JsonConverters.AnyOfJsonConverter<string, object, global::System.Collections.Generic.IList<object>>),

typeof(global::TypeSafeAI.Generated.JsonConverters.AnyOfJsonConverter<string, object>),

typeof(global::TypeSafeAI.Generated.JsonConverters.AnyOfJsonConverter<string, object, global::System.Collections.Generic.IList<object>>),

typeof(global::TypeSafeAI.Generated.JsonConverters.AnyOfJsonConverter<string, object, global::System.Collections.Generic.IList<object>>),
Expand Down Expand Up @@ -80,6 +82,8 @@ namespace TypeSafeAI.Generated
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<object>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary<string, double>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::TypeSafeAI.Generated.ChoiceQuestion))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::TypeSafeAI.Generated.HTTPBadRequestError))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::TypeSafeAI.Generated.AnyOf<string, object>), TypeInfoPropertyName = "AnyOfStringObject2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::TypeSafeAI.Generated.HTTPValidationError))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::TypeSafeAI.Generated.ValidationError>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::TypeSafeAI.Generated.ValidationError))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,107 +105,115 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.HTTPValidationError? Type18 { get; set; }
public global::TypeSafeAI.Generated.HTTPBadRequestError? Type18 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::TypeSafeAI.Generated.ValidationError>? Type19 { get; set; }
public global::TypeSafeAI.Generated.AnyOf<string, object>? Type19 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.ValidationError? Type20 { get; set; }
public global::TypeSafeAI.Generated.HTTPValidationError? Type20 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.ModelMetadata? Type21 { get; set; }
public global::System.Collections.Generic.IList<global::TypeSafeAI.Generated.ValidationError>? Type21 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.ModelMetadataList? Type22 { get; set; }
public global::TypeSafeAI.Generated.ValidationError? Type22 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::TypeSafeAI.Generated.ModelMetadata>? Type23 { get; set; }
public global::TypeSafeAI.Generated.ModelMetadata? Type23 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.NoulCriteria? Type24 { get; set; }
public global::TypeSafeAI.Generated.ModelMetadataList? Type24 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.NoulQuestion? Type25 { get; set; }
public global::System.Collections.Generic.IList<global::TypeSafeAI.Generated.ModelMetadata>? Type25 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.Question? Type26 { get; set; }
public global::TypeSafeAI.Generated.NoulCriteria? Type26 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.ScoreQuestion? Type27 { get; set; }
public global::TypeSafeAI.Generated.NoulQuestion? Type27 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.QuestionDiscriminator? Type28 { get; set; }
public global::TypeSafeAI.Generated.Question? Type28 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.QuestionDiscriminatorType? Type29 { get; set; }
public global::TypeSafeAI.Generated.ScoreQuestion? Type29 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::TypeSafeAI.Generated.AnyOf<string, object, global::System.Collections.Generic.IList<object>>>? Type30 { get; set; }
public global::TypeSafeAI.Generated.QuestionDiscriminator? Type30 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.SystemOneRequest? Type31 { get; set; }
public global::TypeSafeAI.Generated.QuestionDiscriminatorType? Type31 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.Dictionary<string, global::TypeSafeAI.Generated.Question>? Type32 { get; set; }
public global::System.Collections.Generic.IList<global::TypeSafeAI.Generated.AnyOf<string, object, global::System.Collections.Generic.IList<object>>>? Type32 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.Dictionary<string, global::TypeSafeAI.Generated.Asset>? Type33 { get; set; }
public global::TypeSafeAI.Generated.SystemOneRequest? Type33 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.SystemOneResponse? Type34 { get; set; }
public global::System.Collections.Generic.Dictionary<string, global::TypeSafeAI.Generated.Question>? Type34 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.Dictionary<string, global::TypeSafeAI.Generated.Answer>? Type35 { get; set; }
public global::System.Collections.Generic.Dictionary<string, global::TypeSafeAI.Generated.Asset>? Type35 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.Usage? Type36 { get; set; }
public global::TypeSafeAI.Generated.SystemOneResponse? Type36 { get; set; }
/// <summary>
///
/// </summary>
public int? Type37 { get; set; }
public global::System.Collections.Generic.Dictionary<string, global::TypeSafeAI.Generated.Answer>? Type37 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::TypeSafeAI.Generated.AnyOf<string, int?>>? Type38 { get; set; }
public global::TypeSafeAI.Generated.Usage? Type38 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.AnyOf<string, int?>? Type39 { get; set; }
public int? Type39 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.SystemoneV1SystemonePostRequest? Type40 { get; set; }
public global::System.Collections.Generic.IList<global::TypeSafeAI.Generated.AnyOf<string, int?>>? Type40 { get; set; }
/// <summary>
///
/// </summary>
public byte[]? Type41 { get; set; }
public global::TypeSafeAI.Generated.AnyOf<string, int?>? Type41 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.SystemoneV1SystemonePostTypeSafeDangerZoneImages? Type42 { get; set; }
public global::TypeSafeAI.Generated.SystemoneV1SystemonePostRequest? Type42 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.SystemoneV1SystemonePostTypeSafeDangerZoneLongContext? Type43 { get; set; }
public byte[]? Type43 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.SystemoneV1SystemonePostTypeSafeDangerZoneImages? Type44 { get; set; }
/// <summary>
///
/// </summary>
public global::TypeSafeAI.Generated.SystemoneV1SystemonePostTypeSafeDangerZoneLongContext? Type45 { get; set; }

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace TypeSafeAI.Generated
{
public sealed partial class ValidationErrorInput
public sealed partial class HTTPBadRequestError
{
/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
Expand Down Expand Up @@ -47,20 +47,20 @@ public string ToJson(
/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerContext.
/// </summary>
public static global::TypeSafeAI.Generated.ValidationErrorInput? FromJson(
public static global::TypeSafeAI.Generated.HTTPBadRequestError? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::TypeSafeAI.Generated.ValidationErrorInput),
jsonSerializerContext) as global::TypeSafeAI.Generated.ValidationErrorInput;
typeof(global::TypeSafeAI.Generated.HTTPBadRequestError),
jsonSerializerContext) as global::TypeSafeAI.Generated.HTTPBadRequestError;
}

/// <summary>
/// Deserializes a JSON string using the generated default JsonSerializerContext.
/// </summary>
public static global::TypeSafeAI.Generated.ValidationErrorInput? FromJson(
public static global::TypeSafeAI.Generated.HTTPBadRequestError? FromJson(
string json)
{
return FromJson(
Expand All @@ -75,7 +75,7 @@ public string ToJson(
[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::TypeSafeAI.Generated.ValidationErrorInput? FromJson(
public static global::TypeSafeAI.Generated.HTTPBadRequestError? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
Expand All @@ -86,28 +86,28 @@ public string ToJson(
global::TypeSafeAI.Generated.SourceGenerationContext.Default);
}

return global::System.Text.Json.JsonSerializer.Deserialize<global::TypeSafeAI.Generated.ValidationErrorInput>(
return global::System.Text.Json.JsonSerializer.Deserialize<global::TypeSafeAI.Generated.HTTPBadRequestError>(
json,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerContext.
/// </summary>
public static async global::System.Threading.Tasks.ValueTask<global::TypeSafeAI.Generated.ValidationErrorInput?> FromJsonStreamAsync(
public static async global::System.Threading.Tasks.ValueTask<global::TypeSafeAI.Generated.HTTPBadRequestError?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
typeof(global::TypeSafeAI.Generated.ValidationErrorInput),
jsonSerializerContext).ConfigureAwait(false)) as global::TypeSafeAI.Generated.ValidationErrorInput;
typeof(global::TypeSafeAI.Generated.HTTPBadRequestError),
jsonSerializerContext).ConfigureAwait(false)) as global::TypeSafeAI.Generated.HTTPBadRequestError;
}

/// <summary>
/// Deserializes a JSON stream using the generated default JsonSerializerContext.
/// </summary>
public static global::System.Threading.Tasks.ValueTask<global::TypeSafeAI.Generated.ValidationErrorInput?> FromJsonStreamAsync(
public static global::System.Threading.Tasks.ValueTask<global::TypeSafeAI.Generated.HTTPBadRequestError?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream)
{
return FromJsonStreamAsync(
Expand All @@ -122,7 +122,7 @@ public string ToJson(
[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::System.Threading.Tasks.ValueTask<global::TypeSafeAI.Generated.ValidationErrorInput?> FromJsonStreamAsync(
public static global::System.Threading.Tasks.ValueTask<global::TypeSafeAI.Generated.HTTPBadRequestError?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
Expand All @@ -133,7 +133,7 @@ public string ToJson(
global::TypeSafeAI.Generated.SourceGenerationContext.Default);
}

return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::TypeSafeAI.Generated.ValidationErrorInput?>(
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::TypeSafeAI.Generated.HTTPBadRequestError?>(
jsonStream,
jsonSerializerOptions);
}
Expand Down Expand Up @@ -176,7 +176,7 @@ public string ToRawJson(
/// <summary>
/// Deserializes raw JSON while preserving unknown JSON properties.
/// </summary>
public static global::TypeSafeAI.Generated.ValidationErrorInput? FromRawUnchecked(
public static global::TypeSafeAI.Generated.HTTPBadRequestError? FromRawUnchecked(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
Expand All @@ -186,7 +186,7 @@ public string ToRawJson(
/// <summary>
/// Deserializes raw JSON while preserving unknown JSON properties using the generated default JsonSerializerContext.
/// </summary>
public static global::TypeSafeAI.Generated.ValidationErrorInput? FromRawUnchecked(
public static global::TypeSafeAI.Generated.HTTPBadRequestError? FromRawUnchecked(
string json)
{
return FromRawUnchecked(
Expand All @@ -201,7 +201,7 @@ public string ToRawJson(
[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::TypeSafeAI.Generated.ValidationErrorInput? FromRawUnchecked(
public static global::TypeSafeAI.Generated.HTTPBadRequestError? FromRawUnchecked(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

#nullable enable

namespace TypeSafeAI.Generated
{
/// <summary>
/// Application validation failures returned with HTTP status 400.
/// </summary>
public sealed partial class HTTPBadRequestError
{
/// <summary>
/// Explanation of the invalid request. String details and message fields are bounded, with shortened text ending with ….
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("detail")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::TypeSafeAI.Generated.JsonConverters.AnyOfJsonConverter<string, object>))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::TypeSafeAI.Generated.AnyOf<string, object> Detail { get; set; }

/// <summary>
/// Raw JSON properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, global::System.Text.Json.JsonElement> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>();

/// <summary>
/// Initializes a new instance of the <see cref="HTTPBadRequestError" /> class.
/// </summary>
/// <param name="detail">
/// Explanation of the invalid request. String details and message fields are bounded, with shortened text ending with ….
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public HTTPBadRequestError(
global::TypeSafeAI.Generated.AnyOf<string, object> detail)
{
this.Detail = detail;
}

/// <summary>
/// Initializes a new instance of the <see cref="HTTPBadRequestError" /> class.
/// </summary>
public HTTPBadRequestError()
{
}

}
}
Loading
Loading