corvus-dotnet / Corvus.JsonSchema

Support for Json Schema validation and entity generation
Apache License 2.0
106 stars 8 forks source link

Added implicit conversion from an instance to a parsed value of the instance. #361

Closed mwadams closed 5 months ago

mwadams commented 5 months ago

Dispose will do nothing in this case. It simplifies writing APIs that return a parsed value where sometimes the value may be parsed, and sometimes it may be some static default, such as Undefined.

github-actions[bot] commented 5 months ago

Code Coverage Summary Report - Linux (net8.0)

Code Coverage

Package Line Rate Branch Rate Complexity Health
Corvus.Json.Patch 25% 21% 4237
Corvus.Json.JsonSchema.Draft7 14% 14% 8051
Corvus.Json.JsonSchema.Draft6 14% 14% 7329
Corvus.Json.JsonSchema.Draft202012 15% 14% 11933
Corvus.Json.CodeGeneration.7 31% 18% 23584
Corvus.Json.CodeGeneration.202012 31% 18% 27351
Corvus.Json.CodeGeneration.201909 31% 18% 27044
Corvus.Json.ExtendedTypes 39% 33% 17107
Corvus.Json.JsonSchema.Draft201909 14% 14% 12408
Corvus.Json.CodeGeneration.6 32% 18% 21372
Corvus.Json.CodeGeneration.Abstractions 86% 74% 1286
Corvus.Json.Specs 98% 79% 4606
Summary 35% (75362 / 215980) 20% (26619 / 135763) 166308
github-actions[bot] commented 5 months ago

Test Results

     1 files  ±    0       1 suites  ±0   17m 33s :stopwatch: + 1m 56s 11 205 tests +  562  11 205 :white_check_mark: +  562  0 :zzz: ±0  0 :x: ±0  12 253 runs  +1 031  12 253 :white_check_mark: +1 031  0 :zzz: ±0  0 :x: ±0 

Results for commit 0b0197ae. ± Comparison against base commit 5c926be6.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 5 months ago

Code Coverage Summary Report - Windows (net481)

Code Coverage

Package Line Rate Branch Rate Complexity Health
Corvus.Json.Patch 27% 23% 3945
Corvus.Json.JsonSchema.Draft202012 16% 16% 11277
Corvus.Json.JsonSchema.Draft7 15% 15% 7543
Corvus.Json.JsonSchema.Draft6 15% 15% 6862
Corvus.Json.JsonSchema.Draft201909 15% 15% 11715
Corvus.Json.CodeGeneration.6 32% 18% 21374
Corvus.Json.CodeGeneration.7 31% 18% 23586
Corvus.Json.CodeGeneration.201909 31% 18% 27047
Corvus.Json.CodeGeneration.202012 31% 18% 27354
Corvus.Json.ExtendedTypes 39% 36% 11333
Corvus.Json.CodeGeneration.Abstractions 86% 75% 1275
Corvus.Json.Specs 98% 81% 4332
Summary 35% (72232 / 206255) 20% (25053 / 127737) 157643
github-actions[bot] commented 5 months ago

Code Coverage Summary Report - Windows (net8.0)

Code Coverage

Package Line Rate Branch Rate Complexity Health
Corvus.Json.Patch 25% 21% 4237
Corvus.Json.JsonSchema.Draft202012 15% 14% 11933
Corvus.Json.CodeGeneration.201909 31% 18% 27044
Corvus.Json.CodeGeneration.202012 31% 18% 27351
Corvus.Json.JsonSchema.Draft7 14% 14% 8051
Corvus.Json.JsonSchema.Draft6 14% 14% 7329
Corvus.Json.JsonSchema.Draft201909 14% 14% 12408
Corvus.Json.CodeGeneration.6 32% 18% 21372
Corvus.Json.CodeGeneration.7 31% 18% 23584
Corvus.Json.ExtendedTypes 39% 33% 17107
Corvus.Json.CodeGeneration.Abstractions 86% 74% 1286
Corvus.Json.Specs 98% 79% 4606
Summary 35% (75393 / 215980) 20% (26646 / 135763) 166308