< Summary - Kestrun — Combined Coverage

Information
Class: OpenApiResponseComponentAttribute
Assembly: Kestrun.Annotations
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Components/OpenApiResponseComponentAttribute.cs
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
20%
Covered lines: 1
Uncovered lines: 4
Coverable lines: 5
Total lines: 31
Line coverage: 20%
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: 20% (1/5) Total lines: 31 Tag: Kestrun/Kestrun@956332ccc921363590dccd99d5707fb20b50966b

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Title()100%210%
set_Title(...)100%210%
get_Summary()100%210%
get_ContentType()100%11100%
get_Inline()100%210%

File(s)

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

#LineLine coverage
 1/// <summary>
 2/// Specifies metadata for an OpenAPI Response object. Can be applied to variables
 3/// (properties) to contribute entries under components.responses.
 4/// </summary>
 5[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
 6public sealed class OpenApiResponseComponentAttribute : OpenApiProperties
 7{
 8    /// <summary>
 9    /// Title is not supported for response components.
 10    /// </summary>
 11    [Obsolete("Title is not supported for response components.", error: false)]
 12    public new string? Title
 13    {
 014        get => base.Title;
 015        set => throw new NotSupportedException("Title is not supported for OpenApiResponseComponentAttribute.");
 16    }
 17
 18    /// <summary>
 19    /// A brief summary of the response.
 20    /// </summary>
 021    public string? Summary { get; set; }
 22    /// <summary>
 23    /// MIME type of the response payload (default: "application/json").
 24    /// </summary>
 325    public string[] ContentType { get; set; } = ["application/json"];
 26
 27    /// <summary>
 28    /// If true, the schema will be inlined rather than referenced.
 29    /// </summary>
 030    public bool Inline { get; set; }
 31}