-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
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
Index was out of range. Must be non-negative and less than the size of the collection. #853
Comments
Somewhere in your swagger spec you have an enumeration and a default value which is (probably) not in the enumerations list... Can post this part of the spec so that I can reproduce this problem? |
I think I've fixed this in NJS (see commit above) and upgraded NJS in NSwag, please test with the latest CI artifacts: https://ci.appveyor.com/project/rsuter/nswag-25x6o |
Thanks for this, it has partially fixed the issue for me, i no longer get the index out of range exception now. src\common\api.ts:6315:69 I am using string enums, but it looks like it's trying to refer to my enums as integers. I may be wrong though. |
Getting the following error when generating my typescript file. This is on the latest version of nswag.
Worked fine on a previous version (can't remember which version exactly, think it was 10. something)
The text was updated successfully, but these errors were encountered: