I fixed above issue by following below link.
https://github.com/domaindrivendev/Swashbuckle.AspNetCore#systemtextjson-stj-vs-newtonsoft
HI,
I upgraded my project from 8.1 to 8.2. After the upgrade, the swagger generates different result for Timespan.
Before it generated Nullable Timespan like below for ListDto. this.startTime = data["startTime"]; this.endTime = data["endTime"];
now it generates it like below this.startTime = data["startTime"] ? TimeSpan.fromJS(data["startTime"]) : <any>undefined; this.endTime = data["endTime"] ? TimeSpan.fromJS(data["endTime"]) : <any>undefined; and this causes an error on below code
static fromJS(data: any): TimeSpan {
data = typeof data === 'object' ? data : {};
let result = new TimeSpan();
result.init(data);
return result;
}
Above method was not created in 8.1 and both Nullable not not Nullable timespan generates the same code.
Thanks.
Has anyone resolved this issue without "clean, rebuild" until it works?
I cannot make this work.
Everything is properly generated but TokenAuthController.
Thanks for your answer and the link. ;)
I'm facing below issue and I followed the answer mentioned in link, but it doesn't seem to work.
https://support.aspnetzero.com/QA/Questions/4515#answer-5a5b48a1-5084-49fd-b14f-7466220c0d0d
I use the same SQL server with Asp.Net Zero V5 and V6 but have't seen this issue before.
No, not yet.
Yes, we did try that. We upgraded core-js to v3.3.3 but Safari then threw more unhandled exceptions in another anonymous polyfill.
Good day,
We have an ASP.NET ZERO project called WSEPortal downloaded 2018-04-25 .NET Core 2.0 Zero v5.3. With the release of Apple iOS v13_1 our web application throws an unhandled Javascript exception on iOS devices with 13_1. The unhandled exception breaks all further Javascript so the website has no functionality on those iOS v13_1 devices. We have deterined that the unhandled exception is in the core-js library which is at version 2.4.1. Our application's packages.json file uses fixed versions for all libraries that are processed by node build so the most recent versions are not being included in the node build command. I can download the latest version of ASP.NET ZERO for this project, WSEPortal, and it provides core-js v3.1.3, however I will need to merge in all of my application logic, and front end changes. Is it possible to patch core-js or is the major version change from v2 to v3 a breaking change?
Thanks
I created the same issue before and the issue seems to be from Chrome.
I think this issue is from Chrome
https://support.google.com/chrome/thread/11813653?hl=en
I downgrade chrome, it works as expected. so I will close this.
Thanks.