Skip to content

Commit 79fb8e7

Browse files
author
Gunpal Jain
committed
test
1 parent 8708437 commit 79fb8e7

10 files changed

+11
-3
lines changed

src/libs/CSharpToJsonSchema.Generators/Conversion/SymbolGenerator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public static class SymbolGenerator
7979
var assemblyName = "TemporaryAssembly";
8080
var compilation = originalCompilation
8181
.AddSyntaxTrees(syntaxTree);
82+
//.WithAssemblyName(assemblyName);
8283

8384

8485
// Get the semantic model for our newly added syntax tree

src/tests/CSharpToJsonSchema.SnapshotTests/Snapshots/ToolTests.VariousTypes#IVariousTypesTools.GetCurrentWeather3Args.g.received.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public partial class VariousTypesToolsExtensionsJsonSerializerContext
4545
return jsonTypeInfo;
4646
}
4747

48+
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] GetCurrentWeather3ArgsPropInit(global::System.Text.Json.JsonSerializerOptions options)
4849
{
4950
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[7];
5051

src/tests/CSharpToJsonSchema.SnapshotTests/Snapshots/ToolTests.VariousTypes#IVariousTypesTools.GetValueArgs.g.received.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public partial class VariousTypesToolsExtensionsJsonSerializerContext
4545
return jsonTypeInfo;
4646
}
4747

48+
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] GetValueArgsPropInit(global::System.Text.Json.JsonSerializerOptions options)
4849
{
4950
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[0];
5051

src/tests/CSharpToJsonSchema.SnapshotTests/Snapshots/ToolTests.VariousTypes#IVariousTypesTools.GetValueAsyncArgs.g.received.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public partial class VariousTypesToolsExtensionsJsonSerializerContext
4545
return jsonTypeInfo;
4646
}
4747

48+
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] GetValueAsyncArgsPropInit(global::System.Text.Json.JsonSerializerOptions options)
4849
{
4950
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[0];
5051

src/tests/CSharpToJsonSchema.SnapshotTests/Snapshots/ToolTests.VariousTypes#IVariousTypesTools.SetValueArgs.g.received.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public partial class VariousTypesToolsExtensionsJsonSerializerContext
4545
return jsonTypeInfo;
4646
}
4747

48+
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] SetValueArgsPropInit(global::System.Text.Json.JsonSerializerOptions options)
4849
{
4950
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[1];
5051

src/tests/CSharpToJsonSchema.SnapshotTests/Snapshots/ToolTests.VariousTypes#IVariousTypesTools.SetValueAsyncArgs.g.received.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public partial class VariousTypesToolsExtensionsJsonSerializerContext
4545
return jsonTypeInfo;
4646
}
4747

48+
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] SetValueAsyncArgsPropInit(global::System.Text.Json.JsonSerializerOptions options)
4849
{
4950
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[1];
5051

src/tests/CSharpToJsonSchema.SnapshotTests/Snapshots/ToolTests.VariousTypes#IVariousTypesTools.Tools.generated.received.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public static partial class VariousTypesToolsExtensions
6363
Description = "",
6464
}
6565
},
66+
Required = new string[] { "parameter1", "parameter2", "parameter3", "parameter4", "parameter5", "dateTime", "date" },
6667
},
6768
},
6869

@@ -84,6 +85,7 @@ public static partial class VariousTypesToolsExtensions
8485
Description = "",
8586
}
8687
},
88+
Required = new string[] { "value" },
8789
},
8890
},
8991

@@ -117,6 +119,7 @@ public static partial class VariousTypesToolsExtensions
117119
Description = "",
118120
}
119121
},
122+
Required = new string[] { "value" },
120123
},
121124
},
122125

src/tests/CSharpToJsonSchema.SnapshotTests/Snapshots/ToolTests.Weather_Diagnostics.received.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-

1+
[]

src/tests/CSharpToJsonSchema.SnapshotTests/TestHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static async Task CheckSourceAsync(
2929
.Create(new JsonSchemaGenerator())
3030
.RunGeneratorsAndUpdateCompilation(compilation, out compilation, out _, cancellationToken);
3131
var diagnostics = compilation.GetDiagnostics(cancellationToken);
32-
32+
3333
await Task.WhenAll(
3434
verifier
3535
.Verify(diagnostics)

0 commit comments

Comments
 (0)