corvus-dotnet / Corvus.JsonSchema

Support for Json Schema validation and entity generation
Apache License 2.0
99 stars 9 forks source link

Added cancelability to the generation process to better support SourceGenerator scenarios. #402

Closed mwadams closed 1 month ago

mwadams commented 1 month ago

You can flow a CancellationToken through the type build process, and send it on to the code generation through the CodeGenerator (which is constructed with a CancellationToken, and exposes an IsCancellationRequested property.

github-actions[bot] commented 1 month ago

Code Coverage Summary Report - Linux (net8.0)

Code Coverage

Package Line Rate Branch Rate Complexity Health
Corvus.Json.Specs 72% 38% 23873
Corvus.Json.ExtendedTypes 61% 57% 19307
Corvus.Json.CodeGeneration 77% 69% 3505
Corvus.Json.CodeGeneration.202012 87% 75% 111
Corvus.Json.CodeGeneration.OpenApi30 80% 38% 18
Corvus.Json.CodeGeneration.4 85% 75% 18
Corvus.Json.CodeGeneration.6 88% 88% 18
Corvus.Json.CodeGeneration.7 89% 88% 18
Corvus.Json.CodeGeneration.201909 88% 81% 95
Corvus.Json.CodeGeneration.CSharp 92% 72% 5077
Corvus.Json.Patch 22% 19% 4844
Summary 69% (72943 / 105011) 49% (21677 / 44443) 56884
github-actions[bot] commented 1 month ago

Code Coverage Summary Report - Windows (net481)

Code Coverage

Package Line Rate Branch Rate Complexity Health
Corvus.Json.Specs 73% 40% 21813
Corvus.Json.ExtendedTypes 65% 62% 14219
Corvus.Json.CodeGeneration 79% 71% 3378
Corvus.Json.CodeGeneration.202012 87% 75% 111
Corvus.Json.CodeGeneration.OpenApi30 80% 38% 18
Corvus.Json.CodeGeneration.4 85% 75% 18
Corvus.Json.CodeGeneration.6 88% 88% 18
Corvus.Json.CodeGeneration.7 89% 88% 18
Corvus.Json.CodeGeneration.201909 88% 81% 95
Corvus.Json.CodeGeneration.CSharp 92% 72% 5084
Corvus.Json.Patch 23% 20% 4560
IndexRange 28% 8% 41
Summary 71% (67240 / 94195) 51% (19103 / 37611) 49373
github-actions[bot] commented 1 month ago

Code Coverage Summary Report - Windows (net8.0)

Code Coverage

Package Line Rate Branch Rate Complexity Health
Corvus.Json.Specs 72% 38% 23873
Corvus.Json.ExtendedTypes 61% 58% 19307
Corvus.Json.CodeGeneration 77% 69% 3505
Corvus.Json.CodeGeneration.202012 87% 75% 111
Corvus.Json.CodeGeneration.OpenApi30 80% 38% 18
Corvus.Json.CodeGeneration.4 85% 75% 18
Corvus.Json.CodeGeneration.6 88% 88% 18
Corvus.Json.CodeGeneration.7 89% 88% 18
Corvus.Json.CodeGeneration.201909 88% 81% 95
Corvus.Json.CodeGeneration.CSharp 92% 72% 5077
Corvus.Json.Patch 22% 19% 4844
Summary 69% (72971 / 105011) 49% (21699 / 44443) 56884