< Summary - Kestrun — Combined Coverage

Information
Class: Public.OpenAPI.New-KrOpenApiExternalDoc
Assembly: Kestrun.PowerShell.Public
File(s): /home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/OpenAPI/New-KrOpenApiExternalDoc.ps1
Tag: Kestrun/Kestrun@0d738bf294e6281b936d031e1979d928007495ff
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 36
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: 36 Tag: Kestrun/Kestrun@826bf9dcf9db118c5de4c78a3259bce9549f0dcd

Metrics

File(s)

/home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/OpenAPI/New-KrOpenApiExternalDoc.ps1

#LineLine coverage
 1<#
 2.SYNOPSIS
 3    Creates a new OpenAPI external documentation object.
 4.DESCRIPTION
 5    This function creates a new OpenAPI external documentation object using the provided parameters.
 6.PARAMETER Description
 7    A description of the external documentation.
 8.PARAMETER Url
 9    A URI to the external documentation.
 10.EXAMPLE
 11    $externalDocs = New-KrOpenApiExternalDoc -Description 'Find out more about our API here.' -Url 'https://example.com/
 12.OUTPUTS
 13    Microsoft.OpenApi.OpenApiExternalDocs
 14.NOTES
 15    This cmdlet is part of the OpenAPI module.
 16#>
 17function New-KrOpenApiExternalDoc {
 18    [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')]
 19    [KestrunRuntimeApi('Everywhere')]
 20    [OutputType([Microsoft.OpenApi.OpenApiExternalDocs])]
 21    param(
 22        [Parameter()]
 23        [string]$Description,
 24        [Parameter(Mandatory = $true)]
 25        [Uri]$Url
 26    )
 27
 028    $externalDocs = [Microsoft.OpenApi.OpenApiExternalDocs]::new()
 29
 030    if ($PsBoundParameters.ContainsKey('Description')) {
 031        $externalDocs.Description = $Description
 32    }
 033    $externalDocs.Url = $Url
 34
 035    return $externalDocs
 36}

Methods/Properties

New-KrOpenApiExternalDoc()