Skip to content

Add synchronous JsonSchema.FromJson methods #485

Add synchronous JsonSchema.FromJson methods

Add synchronous JsonSchema.FromJson methods #485

Triggered via pull request March 8, 2026 20:41
Status Failure
Total duration 7m 7s
Artifacts

pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

20 errors
ubuntu-latest
Target "Pack" has thrown an exception
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/JsonReferenceResolver.cs(156,22): error CA1310: The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonReferenceResolver.ResolveReference(object, string, System.Type, Newtonsoft.Json.Serialization.IContractResolver, bool)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/NJsonSchema.csproj::TargetFramework=netstandard2.0]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/JsonSchemaReferenceUtilities.cs(172,78): error CA1310: The behavior of 'string.EndsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonSchemaReferenceUtilities.JsonReferenceUpdaterSync.VisitJsonReference(NJsonSchema.References.IJsonReference, string, string?)' with a call to 'string.EndsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/NJsonSchema.csproj::TargetFramework=netstandard2.0]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/JsonSchemaReferenceUtilities.cs(172,29): error CA1310: The behavior of 'string.EndsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonSchemaReferenceUtilities.JsonReferenceUpdaterSync.VisitJsonReference(NJsonSchema.References.IJsonReference, string, string?)' with a call to 'string.EndsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/NJsonSchema.csproj::TargetFramework=netstandard2.0]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/JsonReferenceResolver.cs(156,22): error CA1310: The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonReferenceResolver.ResolveReference(object, string, System.Type, Newtonsoft.Json.Serialization.IContractResolver, bool)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/NJsonSchema.csproj::TargetFramework=net462]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/JsonSchemaReferenceUtilities.cs(172,78): error CA1310: The behavior of 'string.EndsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonSchemaReferenceUtilities.JsonReferenceUpdaterSync.VisitJsonReference(NJsonSchema.References.IJsonReference, string, string?)' with a call to 'string.EndsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/NJsonSchema.csproj::TargetFramework=net462]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/JsonSchemaReferenceUtilities.cs(172,29): error CA1310: The behavior of 'string.EndsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonSchemaReferenceUtilities.JsonReferenceUpdaterSync.VisitJsonReference(NJsonSchema.References.IJsonReference, string, string?)' with a call to 'string.EndsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/NJsonSchema.csproj::TargetFramework=net462]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/JsonReferenceResolver.cs(156,22): error CA1310: The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonReferenceResolver.ResolveReference(object, string, System.Type, Newtonsoft.Json.Serialization.IContractResolver, bool)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/NJsonSchema.csproj::TargetFramework=net8.0]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/JsonSchemaReferenceUtilities.cs(172,78): error CA1310: The behavior of 'string.EndsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonSchemaReferenceUtilities.JsonReferenceUpdaterSync.VisitJsonReference(NJsonSchema.References.IJsonReference, string, string?)' with a call to 'string.EndsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/NJsonSchema.csproj::TargetFramework=net8.0]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/JsonSchemaReferenceUtilities.cs(172,29): error CA1310: The behavior of 'string.EndsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonSchemaReferenceUtilities.JsonReferenceUpdaterSync.VisitJsonReference(NJsonSchema.References.IJsonReference, string, string?)' with a call to 'string.EndsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema/NJsonSchema.csproj::TargetFramework=net8.0]
windows-latest
Target "Pack" has thrown an exception
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\JsonReferenceResolver.cs(156,22): error CA1310: The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonReferenceResolver.ResolveReference(object, string, System.Type, Newtonsoft.Json.Serialization.IContractResolver, bool)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\NJsonSchema.csproj::TargetFramework=netstandard2.0]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\JsonSchemaReferenceUtilities.cs(172,78): error CA1310: The behavior of 'string.EndsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonSchemaReferenceUtilities.JsonReferenceUpdaterSync.VisitJsonReference(NJsonSchema.References.IJsonReference, string, string?)' with a call to 'string.EndsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\NJsonSchema.csproj::TargetFramework=netstandard2.0]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\JsonSchemaReferenceUtilities.cs(172,29): error CA1310: The behavior of 'string.EndsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonSchemaReferenceUtilities.JsonReferenceUpdaterSync.VisitJsonReference(NJsonSchema.References.IJsonReference, string, string?)' with a call to 'string.EndsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\NJsonSchema.csproj::TargetFramework=netstandard2.0]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\JsonReferenceResolver.cs(156,22): error CA1310: The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonReferenceResolver.ResolveReference(object, string, System.Type, Newtonsoft.Json.Serialization.IContractResolver, bool)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\NJsonSchema.csproj::TargetFramework=net8.0]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\JsonSchemaReferenceUtilities.cs(172,78): error CA1310: The behavior of 'string.EndsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonSchemaReferenceUtilities.JsonReferenceUpdaterSync.VisitJsonReference(NJsonSchema.References.IJsonReference, string, string?)' with a call to 'string.EndsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\NJsonSchema.csproj::TargetFramework=net8.0]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\JsonSchemaReferenceUtilities.cs(172,29): error CA1310: The behavior of 'string.EndsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonSchemaReferenceUtilities.JsonReferenceUpdaterSync.VisitJsonReference(NJsonSchema.References.IJsonReference, string, string?)' with a call to 'string.EndsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\NJsonSchema.csproj::TargetFramework=net8.0]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\JsonSchemaReferenceUtilities.cs(172,78): error CA1310: The behavior of 'string.EndsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonSchemaReferenceUtilities.JsonReferenceUpdaterSync.VisitJsonReference(NJsonSchema.References.IJsonReference, string, string?)' with a call to 'string.EndsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\NJsonSchema.csproj::TargetFramework=net462]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\JsonSchemaReferenceUtilities.cs(172,29): error CA1310: The behavior of 'string.EndsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonSchemaReferenceUtilities.JsonReferenceUpdaterSync.VisitJsonReference(NJsonSchema.References.IJsonReference, string, string?)' with a call to 'string.EndsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\NJsonSchema.csproj::TargetFramework=net462]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\JsonReferenceResolver.cs(156,22): error CA1310: The behavior of 'string.StartsWith(string)' could vary based on the current user's locale settings. Replace this call in 'NJsonSchema.JsonReferenceResolver.ResolveReference(object, string, System.Type, Newtonsoft.Json.Serialization.IContractResolver, bool)' with a call to 'string.StartsWith(string, System.StringComparison)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1310) [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema\NJsonSchema.csproj::TargetFramework=net462]