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
In my process methods NSwag produces an else statement, but the variable names doesn't seem to follow the correct naming:
else
} else { return response.text().then((_responseText) => { let resultdefault: any = null; let resultDatadefault = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); result = resultData ? BadRequestObjectResult.fromJS(resultData) : new BadRequestObjectResult(); return throwException("A server error occurred.", status, _responseText, _headers, resultdefault); }); }
Cannot find name 'result' and Cannot find name 'resultData'. The variables are obviously named resultdefault and resultDatadefault.
Cannot find name 'result'
Cannot find name 'resultData'
resultdefault
resultDatadefault
The text was updated successfully, but these errors were encountered:
Can you provide a sample swagger spec?
Sorry, something went wrong.
I will provide one in a few hours.
Here's a sample swagger specification and it produces this typescript client.
Using this command:
nswag swagger2tsclient /input:Mock.json /output:Client.ts
7f34dc4
No branches or pull requests
In my process methods NSwag produces an
else
statement, but the variable names doesn't seem to follow the correct naming:Cannot find name 'result'
andCannot find name 'resultData'
. The variables are obviously namedresultdefault
andresultDatadefault
.The text was updated successfully, but these errors were encountered: