< Summary - Kestrun — Combined Coverage

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Key()100%11100%
get_Summary()100%11100%
get_Description()100%11100%
get_Value()100%11100%
get_ExternalValue()100%11100%

File(s)

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

#LineLine coverage
 1/// <summary>
 2/// Specifies metadata for an OpenAPI Example object. Can be applied to classes
 3/// to contribute entries under components.examples.
 4/// </summary>
 5[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = true)]
 6public sealed class OpenApiExampleAttribute : KestrunAnnotation
 7{
 8    /// <summary>
 9    /// Optional component name override for components.examples key.
 10    /// </summary>
 411    public string? Key { get; set; }
 12
 13    /// <summary>Short summary for the example.</summary>
 214    public string? Summary { get; set; }
 15
 16    /// <summary>Longer description for the example.</summary>
 217    public string? Description { get; set; }
 18
 19    /// <summary>
 20    /// Example value for the example.
 21    /// </summary>
 222    public object? Value { get; set; }
 23
 24    /// <summary>
 25    /// External example URI. If provided, Value is usually omitted per spec.
 26    /// </summary>
 127    public string? ExternalValue { get; set; }
 28}