Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mdaneri opened this issue Oct 7, 2023 · 0 comments
Labels
Milestone

Comments

@mdaneri
Copy link
Contributor

mdaneri commented Oct 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

2 participants