ironmansoftware / powershell-universal

Issue tracker for PowerShell Universal
https://powershelluniversal.com
34 stars 2 forks source link

Api documentation is missing the data set in a variable #3430

Open Omzig opened 2 months ago

Omzig commented 2 months ago

Version

4.3.1

Severity

Low

Environment

Nested IIS

Steps to Reproduce

When I set the documentation to have set variables, they are lost when rendering in swagger.

Set the documentation class like this:

    [Documentation()]
    class GetCredentialsType {
        [string]$title
        [string]$userId
        [string]$password = "Encrypted Password or Secret"
   }

Expected behavior

{
  "userId": "string",
  "password": "Encrypted Password or Secret",
  "title": "string",
}

Actual behavior

{
  "userId": "string",
  "password": "string",
  "title": "string",
}

Additional Environment data

No response

Screenshots/Animations

No response

rstolpe commented 2 weeks ago

Ping on this one