< 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@0d738bf294e6281b936d031e1979d928007495ff
Line coverage
0%
Covered lines: 0
Uncovered lines: 11
Coverable lines: 11
Total lines: 32
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@826bf9dcf9db118c5de4c78a3259bce9549f0dcd

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_In()100%210%
get_Name()100%210%
get_Description()100%210%
get_Key()100%210%
get_Required()100%210%
get_Deprecated()100%210%
get_AllowEmptyValue()100%210%
get_Style()100%210%
get_Explode()100%210%
get_AllowReserved()100%210%
get_Example()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 properties inside a class marked with <see cref="OpenApiModelKindAttribute"/> = Parameters.
 4/// </summary>
 5[AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter, AllowMultiple = false)]
 6public sealed class OpenApiParameterAttribute : KestrunAnnotation
 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>
 13    /// Optional description for the parameter.
 14    /// </summary>
 015    public string? Description { get; set; }
 16    /// <summary>Override the parameter name (default: property name).</summary>
 017    public string? Key { get; set; }
 18    /// <summary>Marks the parameter as required.</summary>
 019    public bool Required { get; set; }
 20    /// <summary>Marks the parameter as deprecated.</summary>
 021    public bool Deprecated { get; set; }
 22    /// <summary>Allow empty value (query only).</summary>
 023    public bool AllowEmptyValue { get; set; }
 24    /// <summary>Serialization style hint.</summary>
 025    public OaParameterStyle? Style { get; set; }
 26    /// <summary>Explode hint for structured values.</summary>
 027    public bool Explode { get; set; }
 28    /// <summary>Allow reserved characters unescaped (query only).</summary>
 029    public bool AllowReserved { get; set; }
 30    /// <summary>Example value (single example).</summary>
 031    public object? Example { get; set; }
 32}