ironmansoftware / issues

Public Issue tracker for Ironman Software products.
https://ironmansoftware.com
31 stars 2 forks source link

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

Open Omzig opened 1 week ago

Omzig commented 1 week 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