< Summary - Kestrun — Combined Coverage

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_StatusCode()100%210%
get_Key()100%210%
get_Description()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%
get_Schema()100%210%

File(s)

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

#LineLine coverage
 1/// <summary>
 2/// Specifies metadata for an OpenAPI Header component. Can be applied to classes,
 3/// properties, or fields to contribute entries under components.headers.
 4/// </summary>
 5[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
 6public sealed class OpenApiResponseHeaderAttribute : KestrunAnnotation, IOpenApiResponseHeaderAttribute
 7{
 8    /// <inheritdoc/>
 09    public string StatusCode { get; set; } = "default";
 10
 11    /// <summary>Optional component key override. If omitted, generator will use class/member naming rules.</summary>
 012    public required string Key { get; set; }
 13
 14    /// <summary>Header description.</summary>
 015    public string? Description { get; set; }
 16
 17    /// <summary>Whether the header is required.</summary>
 018    public bool Required { get; set; }
 19
 20    /// <summary>Whether the header is deprecated.</summary>
 021    public bool Deprecated { get; set; }
 22
 23    /// <summary>Whether the header allows empty value.</summary>
 024    public bool AllowEmptyValue { get; set; }
 25
 26    /// <summary>Serialization style hint.</summary>
 027    public OaParameterStyle? Style { get; set; }
 28
 29    /// <summary>Explode flag for serialization.</summary>
 030    public bool Explode { get; set; }
 31
 32    /// <summary>
 33    /// Whether the header allows reserved characters.
 34    /// </summary>
 035    public bool AllowReserved { get; set; }
 36
 37    /// <summary>Inline example for header value.</summary>
 038    public object? Example { get; set; }
 39
 40    /// <summary>
 41    /// Type of the schema for the header value.
 42    /// </summary>
 043    public Type? Schema { get; set; }
 44}