Skip to content

Fixed SystemTextJson indexed properties handling. #249

Fixed SystemTextJson indexed properties handling.

Fixed SystemTextJson indexed properties handling. #249

Re-run triggered June 10, 2024 10:17
Status Failure
Total duration 5m 26s
Artifacts

pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 22 warnings
ubuntu-latest
[xUnit.net 00:00:02.98] NJsonSchema.CodeGeneration.Tests.InheritanceSerializationTests.JsonInheritanceConverter_is_thread_safe [FAIL]
ubuntu-latest
[xUnit.net 00:00:02.99] NJsonSchema.CodeGeneration.Tests.InheritanceSerializationTests.When_JsonInheritanceConverter_is_used_then_inheritance_is_correctly_serialized_and_deserialized [FAIL]
ubuntu-latest
[xUnit.net 00:00:03.00] NJsonSchema.CodeGeneration.Tests.InheritanceSerializationTests.When_schema_contains_discriminator_and_inheritance_hierarchy_then_TypeScript_is_correctly_generated [FAIL]
ubuntu-latest
[xUnit.net 00:00:03.02] NJsonSchema.CodeGeneration.Tests.InheritanceSerializationTests.When_JsonInheritanceConverter_is_set_then_discriminator_mappings_are_generated [FAIL]
ubuntu-latest
[xUnit.net 00:00:03.02] NJsonSchema.CodeGeneration.Tests.InheritanceSerializationTests.When_JsonInheritanceConverter_is_set_then_discriminator_field_is_set [FAIL]
ubuntu-latest
[xUnit.net 00:00:03.03] NJsonSchema.CodeGeneration.Tests.InheritanceSerializationTests.When_schema_contains_discriminator_and_inheritance_hierarchy_then_CSharp_is_correctly_generated [FAIL]
ubuntu-latest
[xUnit.net 00:00:00.61] NJsonSchema.CodeGeneration.TypeScript.Tests.TypeScriptDiscriminatorTests.When_parameter_is_abstract_then_generate_union_interface [FAIL]
ubuntu-latest
[xUnit.net 00:00:00.66] NJsonSchema.CodeGeneration.TypeScript.Tests.TypeScriptDiscriminatorTests.When_parameter_is_abstract_then_generate_union_class [FAIL]
ubuntu-latest
[xUnit.net 00:00:00.66] NJsonSchema.CodeGeneration.TypeScript.Tests.TypeScriptDiscriminatorTests.When_generating_interface_contract_add_discriminator_string_literal [FAIL]
ubuntu-latest
[xUnit.net 00:00:00.68] NJsonSchema.CodeGeneration.TypeScript.Tests.TypeScriptDiscriminatorTests.When_generating_interface_contract_add_discriminator [FAIL]
windows-latest
[xUnit.net 00:00:01.33] NJsonSchema.CodeGeneration.Tests.CSharp.InheritanceInterfaceTests.When_schema_has_base_schema_then_it_is_referenced_with_Newtonsoft [FAIL]
windows-latest
[xUnit.net 00:00:01.34] NJsonSchema.CodeGeneration.Tests.CSharp.InheritanceInterfaceTests.When_schema_has_base_schema_then_it_is_referenced_with_STJ [FAIL]
windows-latest
[xUnit.net 00:00:01.50] NJsonSchema.CodeGeneration.Tests.CSharp.InheritanceTests.When_class_with_discriminator_has_base_class_then_csharp_is_generated_correctly [FAIL]
windows-latest
[xUnit.net 00:00:01.10] NJsonSchema.Tests.Generation.InheritanceTests.When_using_JsonInheritanceAttribute_then_schema_is_correct [FAIL]
windows-latest
[xUnit.net 00:00:01.11] NJsonSchema.Tests.Generation.SystemTextJson.SystemTextJsonInheritanceTests.When_using_JsonInheritanceAttribute_and_SystemTextJson_then_schema_is_correct [FAIL]
windows-latest
[xUnit.net 00:00:01.11] NJsonSchema.Tests.Generation.InheritanceTests.Existing_string_property_can_be_discriminant [FAIL]
windows-latest
[xUnit.net 00:00:01.13] NJsonSchema.Tests.Generation.InheritanceTests.When_class_with_discriminator_has_base_class_then_mapping_is_placed_in_type_schema_and_not_root [FAIL]
windows-latest
[xUnit.net 00:00:01.13] NJsonSchema.Tests.Generation.InheritanceTests.Existing_non_string_property_cant_be_discriminant [FAIL]
windows-latest
[xUnit.net 00:00:01.14] NJsonSchema.Tests.Generation.InheritanceTests.When_root_schema_is_inherited_then_schema_is_generated [FAIL]
windows-latest
[xUnit.net 00:00:00.57] NJsonSchema.CodeGeneration.TypeScript.Tests.AbstractGenerationTests.When_abstract_class_is_in_inheritance_hierarchy_then_it_is_newer_instantiated [FAIL]
ubuntu-latest
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Yaml.Tests/References/YamlReferencesTests.cs(21,27): warning CA1707: Remove the underscores from member name NJsonSchema.Yaml.Tests.References.LocalReferencesTests.When_yaml_schema_has_references_it_works(string, string) (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1707) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Yaml.Tests/NJsonSchema.Yaml.Tests.csproj::TargetFramework=net462]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Yaml.Tests/References/YamlReferencesTests.cs(38,27): warning CA1707: Remove the underscores from member name NJsonSchema.Yaml.Tests.References.LocalReferencesTests.When_yaml_OpenAPI_spec_has_external_schema_refs_they_are_resolved(string, string, string) (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1707) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Yaml.Tests/NJsonSchema.Yaml.Tests.csproj::TargetFramework=net462]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Yaml.Tests/References/YamlReferencesTests.cs(69,27): warning CA1707: Remove the underscores from member name NJsonSchema.Yaml.Tests.References.LocalReferencesTests.When_yaml_OpenAPI_spec_is__served_with_gzip_compression__it_works(string, string) (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1707) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Yaml.Tests/NJsonSchema.Yaml.Tests.csproj::TargetFramework=net462]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Yaml.Tests/References/YamlReferencesTests.cs(83,27): warning CA1707: Remove the underscores from member name NJsonSchema.Yaml.Tests.References.LocalReferencesTests.When_yaml_OpenAPI_spec_has_relative_external_schema_refs_in_subdirs__they_are_resolved(string) (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1707) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Yaml.Tests/NJsonSchema.Yaml.Tests.csproj::TargetFramework=net462]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Yaml.Tests/References/YamlReferencesTests.cs(115,24): warning CA1822: Member 'GetTestDirectory' does not access instance data and can be marked as static (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Yaml.Tests/NJsonSchema.Yaml.Tests.csproj::TargetFramework=net462]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.NewtonsoftJson.Tests/Generation/StructTests.cs(18,47): warning CA1051: Do not declare visible instance fields (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1051) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.NewtonsoftJson.Tests/NJsonSchema.NewtonsoftJson.Tests.csproj::TargetFramework=net462]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.NewtonsoftJson.Tests/Generation/StructTests.cs(21,48): warning CA1051: Do not declare visible instance fields (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1051) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.NewtonsoftJson.Tests/NJsonSchema.NewtonsoftJson.Tests.csproj::TargetFramework=net462]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.NewtonsoftJson.Tests/Generation/StructTests.cs(25,21): warning CA1707: Remove the underscores from member name NJsonSchema.NewtonsoftJson.Tests.Generation.StructTests.Should_have_a_shared_struct_schema() (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1707) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.NewtonsoftJson.Tests/NJsonSchema.NewtonsoftJson.Tests.csproj::TargetFramework=net462]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.NewtonsoftJson.Tests/Generation/RecordTests.cs(14,21): warning CA1707: Remove the underscores from member name NJsonSchema.NewtonsoftJson.Tests.Generation.RecordTests.Should_have_only_one_property() (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1707) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.NewtonsoftJson.Tests/NJsonSchema.NewtonsoftJson.Tests.csproj::TargetFramework=net462]
ubuntu-latest
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.NewtonsoftJson.Tests/Generation/StructTests.cs(34,13): warning xUnit2013: Do not use Assert.Equal() to check for collection size. Use Assert.Single instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.NewtonsoftJson.Tests/NJsonSchema.NewtonsoftJson.Tests.csproj::TargetFramework=net462]
windows-latest
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\Program.cs(73,23): warning CS8618: Non-nullable property 'Person' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\NJsonSchema.Demo.Performance.csproj]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\Program.cs(75,24): warning CS8618: Non-nullable property 'Teacher' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\NJsonSchema.Demo.Performance.csproj]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\Program.cs(77,34): warning CS8618: Non-nullable property 'WritingInstrument' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\NJsonSchema.Demo.Performance.csproj]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\Program.cs(68,23): warning CS8618: Non-nullable property 'Baz' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\NJsonSchema.Demo.Performance.csproj]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\Program.cs(57,23): warning CS8618: Non-nullable property 'Bar' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\NJsonSchema.Demo.Performance.csproj]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\Program.cs(52,23): warning CS8618: Non-nullable property 'Foo' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\NJsonSchema.Demo.Performance.csproj]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\Program.cs(47,23): warning CS8618: Non-nullable property 'Baz' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\NJsonSchema.Demo.Performance.csproj]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\Program.cs(41,23): warning CS8618: Non-nullable property 'Bar' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\NJsonSchema.Demo.Performance.csproj]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\Program.cs(35,23): warning CS8618: Non-nullable property 'Foo' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Demo.Performance\NJsonSchema.Demo.Performance.csproj]
windows-latest
D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Tests\Converters\JsonExceptionConverterTests.cs(26,23): warning CA1507: Use nameof in place of string literal 'CompanyKey' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1507) [D:\a\NJsonSchema\NJsonSchema\src\NJsonSchema.Tests\NJsonSchema.Tests.csproj::TargetFramework=net8.0]