Pode icon indicating copy to clipboard operation
Pode copied to clipboard

Get-PodeOpenApiDefinition generate an error Get-PodeOpenApiDefinitionInternal doesn't have a property named Version

Open mdaneri opened this issue 1 year ago • 0 comments

If you invoke Get-PodeOpenApiDefinition the operation fails because Get-PodeOpenApiDefinitionInternal doen't have a Version and Description property

Public OpenApi.ps1 line 199

 return (Get-PodeOpenApiDefinitionInternal `
            -Title $Title `
            -Version $Version `
            -Description $Description `
            -RouteFilter $RouteFilter `
            -Protocol $WebEvent.Endpoint.Protocol `
            -Address $WebEvent.Endpoint.Address `
            -EndpointName $WebEvent.Endpoint.Name `
            -RestrictRoutes:$RestrictRoutes)

the call should simply return Get-PodeOpenApiDefinitionInternal -Title $Title

I fixed the call on my branch

mdaneri avatar Oct 07 '23 22:10 mdaneri