Bump the other-testing group with 1 update (#1101)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
This commit is contained in:
parent
a78008c53c
commit
d0ee6a0bef
2 changed files with 5 additions and 4 deletions
|
|
@ -90,6 +90,6 @@
|
|||
<PackageVersion Include="xunit.v3" Version="3.2.1" />
|
||||
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />
|
||||
<PackageVersion Include="System.Net.Http" Version="4.3.4" />
|
||||
<PackageVersion Include="JsonSchema.Net" Version="7.4.0" />
|
||||
<PackageVersion Include="JsonSchema.Net" Version="8.0.3" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
@ -658,11 +658,11 @@ public partial class McpServerToolTests
|
|||
{
|
||||
JsonSchema schema = JsonSerializer.Deserialize(schemaDoc, JsonContext2.Default.JsonSchema)!;
|
||||
EvaluationOptions options = new() { OutputFormat = OutputFormat.List };
|
||||
EvaluationResults results = schema.Evaluate(value, options);
|
||||
EvaluationResults results = schema.Evaluate(JsonSerializer.SerializeToElement(value, JsonContext2.Default.JsonNode), options);
|
||||
if (!results.IsValid)
|
||||
{
|
||||
IEnumerable<string> errors = results.Details
|
||||
.Where(d => d.HasErrors)
|
||||
IEnumerable<string> errors = (results.Details ?? [])
|
||||
.Where(d => d.Errors?.Count > 0)
|
||||
.SelectMany(d => d.Errors!.Select(error => $"Path:${d.InstanceLocation} {error.Key}:{error.Value}"));
|
||||
|
||||
throw new XunitException($"""
|
||||
|
|
@ -826,6 +826,7 @@ public partial class McpServerToolTests
|
|||
private static string ToolWithoutReturnDescription() => "result";
|
||||
|
||||
[JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase)]
|
||||
[JsonSerializable(typeof(JsonNode))]
|
||||
[JsonSerializable(typeof(DisposableToolType))]
|
||||
[JsonSerializable(typeof(AsyncDisposableToolType))]
|
||||
[JsonSerializable(typeof(AsyncDisposableAndDisposableToolType))]
|
||||
|
|
|
|||
Loading…
Reference in a new issue