< Summary - Kestrun — Combined Coverage

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Key()100%210%
get_Description()100%210%
get_OperationId()100%210%
get_OperationRef()100%210%
get_MapKey()100%210%
get_MapValue()100%210%
get_RequestBodyExpression()100%210%
get_RequestBodyJson()100%210%

File(s)

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

#LineLine coverage
 1/// <summary>
 2/// Place on a property or parameter to indicate it is an OpenAPI link.
 3/// </summary>
 4[AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter, AllowMultiple = true)]
 5public sealed class OpenApiLinkAttribute : KestrunAnnotation
 6{
 7    /// <summary>
 8    /// Override the parameter name (default: property name).
 9    /// </summary>
 010    public string? Key { get; set; }
 11    /// <summary>
 12    /// Optional description for the link.
 13    /// </summary>
 014    public string? Description { get; set; }
 15
 16    /// <summary>
 17    /// The operationId of the linked operation.
 18    /// </summary>
 019    public string? OperationId { get; set; }
 20
 21    /// <summary>
 22    /// The operationId of the linked operation.
 23    /// </summary>
 024    public string? OperationRef { get; set; }
 25    /// <summary>
 26    /// The map key for the request parameter.
 27    /// </summary>
 028    public string? MapKey { get; set; }
 29    /// <summary>
 30    /// The map value for the request parameter.
 31    /// </summary>
 032    public string? MapValue { get; set; }
 33    /// <summary>
 34    /// The request body expression or json for the link.
 35    /// </summary>
 036    public string? RequestBodyExpression { get; set; }
 37    /// <summary>
 38    /// The request body json for the link.
 39    /// </summary>
 040    public string? RequestBodyJson { get; set; }
 41}