We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Powershell client should use $Response.Content for deserializing response. Converting $Response to string as is replaces non-ascii characters with ?
?
openapi-generator/modules/openapi-generator/src/main/resources/powershell/api_client.mustache
Line 191 in 1b2917d
Proof in source code of powershell: https://github.com/PowerShell/PowerShell/blob/9489629f769061e3ff40f155fd2ce9a0a6c4334a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebResponseObject.Common.cs#L175
Encoding.ASCII.GetChars(Content)
master
Generate powershell client
Invoke request to api with non-uncode characters in response
Expected: character parsed correctly Actual: Bunch of ????? instead of character
?????
The text was updated successfully, but these errors were encountered:
thanks for reporting the issue
can you please file a PR with the suggested fix?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug Report Checklist
Have you provided a full/minimal spec to reproduce the issue?Not applicableHave you validated the input using an OpenAPI validator (example)?Not applicableDescription
Powershell client should use $Response.Content for deserializing response. Converting $Response to string as is replaces non-ascii characters with
?
openapi-generator/modules/openapi-generator/src/main/resources/powershell/api_client.mustache
Line 191 in 1b2917d
Proof in source code of powershell: https://github.com/PowerShell/PowerShell/blob/9489629f769061e3ff40f155fd2ce9a0a6c4334a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebResponseObject.Common.cs#L175
openapi-generator version
master
OpenAPI declaration file content or url
Generation Details
Generate powershell client
Steps to reproduce
Invoke request to api with non-uncode characters in response
Expected: character parsed correctly
Actual: Bunch of
?????
instead of characterRelated issues/PRs
Suggest a fix
The text was updated successfully, but these errors were encountered: