Skip to content

Commit 35bfefa

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#138)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent 11694bc commit 35bfefa

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/libs/Mistral/Generated/Mistral.Models.JsonSchema.g.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public sealed partial class JsonSchema
2626
/// </summary>
2727
[global::System.Text.Json.Serialization.JsonPropertyName("schema")]
2828
[global::System.Text.Json.Serialization.JsonRequired]
29-
public required object Schema { get; set; }
29+
public required object SchemaDefinition { get; set; }
3030

3131
/// <summary>
3232
/// Default Value: false
@@ -44,7 +44,7 @@ public sealed partial class JsonSchema
4444
/// Initializes a new instance of the <see cref="JsonSchema" /> class.
4545
/// </summary>
4646
/// <param name="name"></param>
47-
/// <param name="schema"></param>
47+
/// <param name="schemaDefinition"></param>
4848
/// <param name="description"></param>
4949
/// <param name="strict">
5050
/// Default Value: false
@@ -54,13 +54,13 @@ public sealed partial class JsonSchema
5454
#endif
5555
public JsonSchema(
5656
string name,
57-
object schema,
57+
object schemaDefinition,
5858
string? description,
5959
bool? strict)
6060
{
6161
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
6262
this.Description = description;
63-
this.Schema = schema ?? throw new global::System.ArgumentNullException(nameof(schema));
63+
this.SchemaDefinition = schemaDefinition ?? throw new global::System.ArgumentNullException(nameof(schemaDefinition));
6464
this.Strict = strict;
6565
}
6666

src/libs/Mistral/Generated/Mistral.Models.JsonSchemaSchema.Json.g.cs renamed to src/libs/Mistral/Generated/Mistral.Models.SchemaDefinition.Json.g.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Mistral
44
{
5-
public sealed partial class JsonSchemaSchema
5+
public sealed partial class SchemaDefinition
66
{
77
/// <summary>
88
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
@@ -34,14 +34,14 @@ public string ToJson(
3434
/// <summary>
3535
/// Deserializes a JSON string using the provided JsonSerializerContext.
3636
/// </summary>
37-
public static global::Mistral.JsonSchemaSchema? FromJson(
37+
public static global::Mistral.SchemaDefinition? FromJson(
3838
string json,
3939
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
4040
{
4141
return global::System.Text.Json.JsonSerializer.Deserialize(
4242
json,
43-
typeof(global::Mistral.JsonSchemaSchema),
44-
jsonSerializerContext) as global::Mistral.JsonSchemaSchema;
43+
typeof(global::Mistral.SchemaDefinition),
44+
jsonSerializerContext) as global::Mistral.SchemaDefinition;
4545
}
4646

4747
/// <summary>
@@ -51,26 +51,26 @@ public string ToJson(
5151
[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.")]
5252
[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.")]
5353
#endif
54-
public static global::Mistral.JsonSchemaSchema? FromJson(
54+
public static global::Mistral.SchemaDefinition? FromJson(
5555
string json,
5656
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
5757
{
58-
return global::System.Text.Json.JsonSerializer.Deserialize<global::Mistral.JsonSchemaSchema>(
58+
return global::System.Text.Json.JsonSerializer.Deserialize<global::Mistral.SchemaDefinition>(
5959
json,
6060
jsonSerializerOptions);
6161
}
6262

6363
/// <summary>
6464
/// Deserializes a JSON stream using the provided JsonSerializerContext.
6565
/// </summary>
66-
public static async global::System.Threading.Tasks.ValueTask<global::Mistral.JsonSchemaSchema?> FromJsonStreamAsync(
66+
public static async global::System.Threading.Tasks.ValueTask<global::Mistral.SchemaDefinition?> FromJsonStreamAsync(
6767
global::System.IO.Stream jsonStream,
6868
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
6969
{
7070
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
7171
jsonStream,
72-
typeof(global::Mistral.JsonSchemaSchema),
73-
jsonSerializerContext).ConfigureAwait(false)) as global::Mistral.JsonSchemaSchema;
72+
typeof(global::Mistral.SchemaDefinition),
73+
jsonSerializerContext).ConfigureAwait(false)) as global::Mistral.SchemaDefinition;
7474
}
7575

7676
/// <summary>
@@ -80,11 +80,11 @@ public string ToJson(
8080
[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.")]
8181
[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.")]
8282
#endif
83-
public static global::System.Threading.Tasks.ValueTask<global::Mistral.JsonSchemaSchema?> FromJsonStreamAsync(
83+
public static global::System.Threading.Tasks.ValueTask<global::Mistral.SchemaDefinition?> FromJsonStreamAsync(
8484
global::System.IO.Stream jsonStream,
8585
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
8686
{
87-
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::Mistral.JsonSchemaSchema?>(
87+
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::Mistral.SchemaDefinition?>(
8888
jsonStream,
8989
jsonSerializerOptions);
9090
}

src/libs/Mistral/Generated/Mistral.Models.JsonSchemaSchema.g.cs renamed to src/libs/Mistral/Generated/Mistral.Models.SchemaDefinition.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Mistral
66
/// <summary>
77
///
88
/// </summary>
9-
public sealed partial class JsonSchemaSchema
9+
public sealed partial class SchemaDefinition
1010
{
1111

1212
/// <summary>

0 commit comments

Comments
 (0)