< Summary - Kestrun — Combined Coverage

Information
Class: OpenApiRequestBodyRefAttribute
Assembly: Kestrun.Annotations
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Attributes/OpenApiRequestBodyRefAttribute.cs
Tag: Kestrun/Kestrun@0d738bf294e6281b936d031e1979d928007495ff
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 24
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/5) Total lines: 24 Tag: Kestrun/Kestrun@826bf9dcf9db118c5de4c78a3259bce9549f0dcd

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_StatusCode()100%210%
get_ReferenceId()100%210%
get_Description()100%210%
get_Inline()100%210%
get_Required()100%210%

File(s)

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

#LineLine coverage
 1/// <summary>
 2/// Place on a property or field to indicate it is a request body reference.
 3/// </summary>
 4/// <param name="statusCode">The HTTP status code for the request body.</param>
 5/// <param name="refId">The components/requests id</param>
 6[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = true)]
 7public sealed class OpenApiRequestBodyRefAttribute : KestrunAnnotation
 8{
 09    public required string StatusCode { get; set; }
 010    public required string ReferenceId { get; set; }
 11    /// <summary>
 12    /// Description of the request body reference.
 13    /// </summary>
 014    public string? Description { get; set; }
 15
 16    /// <summary>
 17    /// If true, the schema will be inlined rather than referenced.
 18    /// </summary>
 019    public bool Inline { get; set; }
 20    /// <summary>
 21    /// Indicates whether the request body is required.
 22    /// </summary>
 023    public bool Required { get; set; }
 24}