< Summary - Kestrun — Combined Coverage

Information
Class: OpenApiRequestBodyComponentAttribute
Assembly: Kestrun.Annotations
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Components/OpenApiRequestBodyComponentAttribute.cs
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 35
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 01/17/2026 - 04:33:35 Line coverage: 0% (0/5) Total lines: 35 Tag: Kestrun/Kestrun@aca34ea8d284564e2f9f6616dc937668dce926ba

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Description()100%210%
get_Key()100%210%
get_ContentType()100%210%
get_Required()100%210%
get_Inline()100%210%

File(s)

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

#LineLine coverage
 1/// <summary>
 2/// Specifies metadata for an OpenAPI request body component. This attribute can be applied to method parameters
 3/// to contribute entries under components.requestBodies.
 4/// </summary>
 5[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
 6public sealed class OpenApiRequestBodyComponentAttribute : OpenApiProperties
 7{
 8    /// <summary>
 9    /// Description of the request body.
 10    /// </summary>
 011    public new string? Description { get; set; }
 12
 13    /// <summary>
 14    /// Optional component key override. If omitted, generator will use class/member naming rules.
 15    /// </summary>
 016    public string? Key { get; set; }
 17
 18    /// <summary>
 19    /// Media type. Defaults to application/json.
 20    /// </summary>
 021    public string[] ContentType { get; set; } = ["application/json"];
 22
 23    /// <summary>
 24    /// Whether the request body is required.
 25    /// </summary>
 026    public bool Required { get; set; }
 27
 28    /// <summary>
 29    /// When true, the generator will emit an inline schema object for the request body instead
 30    /// of a <c>$ref</c> to <c>components.schemas</c>. This applies whether the schema is resolved
 31    /// from a CLR type or from a string-based schema reference; in both cases the resolved schema
 32    /// will be inlined where supported.
 33    /// </summary>
 034    public bool Inline { get; set; }
 35}