You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently switched from using Fetch to Axios so that I could use interceptors and I noticed that my reviver function that I'm using to parse date strings into Date objects is not being used anymore. The generated code does not seem to pass it into the JSON.Parse() function.
NSwag either needs an option to disable JSON.Parse() so I can handle it in my interceptors/transformResponse within Axios, or it should use the reviver if it is specified. Or perhaps both.
Without one of these options, either the data isn't transformed or an error is thrown as both Axios and NSwag will run duplicate JSON.Parse() calls.
I recently switched from using
Fetch
toAxios
so that I could use interceptors and I noticed that my reviver function that I'm using to parse date strings into Date objects is not being used anymore. The generated code does not seem to pass it into the JSON.Parse() function.NSwag either needs an option to disable JSON.Parse() so I can handle it in my interceptors/transformResponse within Axios, or it should use the reviver if it is specified. Or perhaps both.
Without one of these options, either the data isn't transformed or an error is thrown as both Axios and NSwag will run duplicate JSON.Parse() calls.
I believe this might address #4973, #4468, #4134, and #4112
The text was updated successfully, but these errors were encountered: