It looks like the .INPUTS does not work if the content is not in the main .endpoints.ps1 script
For example
My documentation in the external file for the endpoint looks like this.
<#
.SYNOPSIS
todo
.DESCRIPTION
todo
.OUTPUTS
200:
Description: Successful
400:
Description: The user account is null or empty or failed to invoke the pending exit script
.INPUTS
Required: true
Description: UserAccount to exit
Content:
application/json: MyObject
#>
# Use POST data from the body in JSON format
$Body = $Body | ConvertFrom-Json
It order to get MyObject to show up in the Swagger docs I need to add it to the .endpoints.ps1 script. It does not work in the external ps1 file.
<#
.SYNOPSIS
todo
.DESCRIPTION
todo
.OUTPUTS
200:
Description: Successful
400:
Description: The user account is null or empty or failed to invoke the pending exit script
.INPUTS
Required: true
Description: UserAccount to exit
Content:
application/json: MyObject
#>
# Use POST data from the body in JSON format
$Body = $Body | ConvertFrom-Json
TBH I didn’t know you were supposed to put the class documentation under endpointdocumentation.ps1 but its still not working on this version. Ill test on 3.9.2