< Summary - Kestrun — Combined Coverage

Information
Class: OpenApiParameterComponentAttribute
Assembly: Kestrun.Annotations
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Components/OpenApiParameterComponentAttribute.cs
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
84%
Covered lines: 11
Uncovered lines: 2
Coverable lines: 13
Total lines: 59
Line coverage: 84.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

Coverage history

Coverage history 0 25 50 75 100 01/12/2026 - 18:03:06 Line coverage: 81.8% (9/11) Total lines: 49 Tag: Kestrun/Kestrun@956332ccc921363590dccd99d5707fb20b50966b01/17/2026 - 04:33:35 Line coverage: 84.6% (11/13) Total lines: 59 Tag: Kestrun/Kestrun@aca34ea8d284564e2f9f6616dc937668dce926ba

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Title()100%210%
set_Title(...)100%210%
get_Description()100%11100%
get_Deprecated()100%11100%
get_Key()100%11100%
get_In()100%11100%
get_Required()100%11100%
get_AllowEmptyValue()100%11100%
get_Style()100%11100%
get_Explode()100%11100%
get_AllowReserved()100%11100%
get_Inline()100%11100%
get_ContentType()100%11100%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Components/OpenApiParameterComponentAttribute.cs

#LineLine coverage
 1/// <summary>
 2/// Specifies metadata for an OpenAPI Parameter object. Can be applied to classes
 3/// to contribute entries under components.parameters.
 4/// </summary>
 5[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
 6public sealed class OpenApiParameterComponentAttribute : OpenApiProperties
 7{
 8    /// <summary>
 9    /// Title is not supported for parameter components.
 10    /// </summary>
 11    [Obsolete("Title is not supported for parameter components.", error: false)]
 12    public new string? Title
 13    {
 014        get => base.Title;
 015        set => throw new NotSupportedException("Title is not supported for OpenApiParameterComponentAttribute.");
 16    }
 17
 18    /// <summary>
 19    /// Description of the parameter.
 20    /// </summary>
 521    public new string? Description { get; set; }
 22
 23    /// <summary>
 24    /// Indicates whether the parameter is deprecated.
 25    /// </summary>
 226    public new bool Deprecated { get; set; }
 27
 28    /// <summary>
 29    /// The local name under components.parameters.
 30    /// </summary>
 231    public string? Key { get; set; }
 32
 33    /// <summary>
 34    /// The location of the parameter.
 35    /// </summary>
 736    public OaParameterLocation In { get; set; } = OaParameterLocation.Query;
 37
 38    /// <summary>
 39    /// Whether the parameter is required.
 40    /// </summary>
 341    public bool Required { get; set; }
 42
 43    /// <summary>Allow empty value (query only).</summary>
 244    public bool AllowEmptyValue { get; set; }
 45    /// <summary>Serialization style hint.</summary>
 246    public OaParameterStyle? Style { get; set; }
 47    /// <summary>Explode hint for structured values.</summary>
 248    public bool Explode { get; set; }
 49    /// <summary>Allow reserved characters unescaped (query only).</summary>
 250    public bool AllowReserved { get; set; }
 51    /// <summary>
 52    /// Indicates that the parameter definition should be inlined
 53    /// into the operation rather than being a reusable component.
 54    /// </summary>
 255    public bool Inline { get; set; }
 56
 57    /// <summary>The key is the media type. Will use content instead of schema.</summary>
 258    public string? ContentType { get; set; }
 59}