< Summary - Kestrun — Combined Coverage

Information
Class: OpenApiParameterAttribute
Assembly: Kestrun.Annotations
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Attributes/OpenApiParameterAttribute.cs
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 25
Line coverage: 0%
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

Coverage history

Coverage history 0 25 50 75 100 12/12/2025 - 17:27:19 Line coverage: 0% (0/11) Total lines: 32 Tag: Kestrun/Kestrun@826bf9dcf9db118c5de4c78a3259bce9549f0dcd01/12/2026 - 18:03:06 Line coverage: 0% (0/8) Total lines: 25 Tag: Kestrun/Kestrun@956332ccc921363590dccd99d5707fb20b50966b

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_In()100%210%
get_Name()100%210%
get_Key()100%210%
get_Required()100%210%
get_AllowEmptyValue()100%210%
get_Style()100%210%
get_Explode()100%210%
get_AllowReserved()100%210%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Attributes/OpenApiParameterAttribute.cs

#LineLine coverage
 1/// <summary>
 2/// OpenAPI Parameter metadata for query/path/header/cookie items.
 3/// Apply on parameters or fields marked with <see cref="OpenApiModelKindAttribute"/> = Parameters.
 4/// </summary>
 5[AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Field, AllowMultiple = true, Inherited = false)]
 6public sealed class OpenApiParameterAttribute : OpenApiProperties
 7{
 8    /// <summary>Where the parameter lives (query/header/path/cookie).</summary>
 09    public string In { get; set; } = OaParameterLocation.Query.ToString();
 10    /// <summary>Override the parameter name (default: property name).</summary>
 011    public string? Name { get; set; }
 12    /// <summary>Override the parameter name (default: property name).</summary>
 013    public string? Key { get; set; }
 14    /// <summary>Marks the parameter as required.</summary>
 015    public bool Required { get; set; }
 16
 17    /// <summary>Allow empty value (query only).</summary>
 018    public bool AllowEmptyValue { get; set; }
 19    /// <summary>Serialization style hint.</summary>
 020    public OaParameterStyle? Style { get; set; }
 21    /// <summary>Explode hint for structured values.</summary>
 022    public bool Explode { get; set; }
 23    /// <summary>Allow reserved characters unescaped (query only).</summary>
 024    public bool AllowReserved { get; set; }
 25}