< Summary

Information
Class: UIBlazor.Processors.Models.JsonSchemaProperty
Assembly: UIBlazor
File(s): /home/runner/work/InvAit/InvAit/UIBlazor/Processors/Models/JsonSchemaProperty.cs
Tag: 71_26091983037
Line coverage
91%
Covered lines: 11
Uncovered lines: 1
Coverable lines: 12
Total lines: 27
Line coverage: 91.6%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Type()100%11100%
get_Title()100%210%
get_Description()100%11100%
get_EnumValues()100%11100%
get_Minimum()100%11100%
get_Maximum()100%11100%
get_MinLength()100%11100%
get_MaxLength()100%11100%
get_Pattern()100%11100%
get_Properties()100%11100%
get_Items()100%11100%
get_Required()100%11100%

File(s)

/home/runner/work/InvAit/InvAit/UIBlazor/Processors/Models/JsonSchemaProperty.cs

#LineLine coverage
 1namespace UIBlazor.Processors.Models;
 2
 3/// <summary>
 4/// Represents a property definition within a JSON Schema.
 5/// Supports recursive structures for nested objects and arrays.
 6/// </summary>
 7public class JsonSchemaProperty
 8{
 6429    public string? Type { get; set; } = "object";
 010    public string? Title { get; set; }
 3211    public string? Description { get; set; }
 12
 13    // Constraints
 11114    public List<object>? EnumValues { get; set; }
 2815    public double? Minimum { get; set; }
 2816    public double? Maximum { get; set; }
 3017    public int? MinLength { get; set; }
 3018    public int? MaxLength { get; set; }
 2819    public string? Pattern { get; set; }
 20
 21    // Nested structures
 27222    public Dictionary<string, JsonSchemaProperty>? Properties { get; set; }
 23
 4124    public JsonSchemaProperty? Items { get; set; }
 25
 27026    public List<string> Required { get; set; } = [];
 27}