-
-
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
Difference in OffsetMomentJS between parameters in the body and in the querystring #1613
Comments
We need to use the logic from here also for parameters: Tasks:
|
I recently encountered the same issue, but then with moment.Duration and the conversion to TimeSpan. Will this be fixed with the same case? |
RicoSuter
pushed a commit
that referenced
this issue
Nov 11, 2021
bjarne-callewaert
pushed a commit
to bjarne-callewaert/NSwag
that referenced
this issue
Feb 14, 2022
bjarne-callewaert
pushed a commit
to bjarne-callewaert/NSwag
that referenced
this issue
Feb 14, 2022
RicoSuter
pushed a commit
that referenced
this issue
Feb 22, 2022
#1613 (#3882) Co-authored-by: Bjarne Callewaert <[email protected]>
lahma
pushed a commit
to lahma/NSwag
that referenced
this issue
Dec 25, 2022
RicoSuter#1613 (RicoSuter#3882) Co-authored-by: Bjarne Callewaert <[email protected]>
lahma
pushed a commit
to lahma/NSwag
that referenced
this issue
Jan 20, 2024
RicoSuter#1613 (RicoSuter#3882) Co-authored-by: Bjarne Callewaert <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When generating TypeScript code with the dateTimeType set to "OffsetMomentJS" it only adjusts the offset for parameters that are in the body of a HTTP action.
this.plannedStartDate.toISOString(true)
But for parameters that are passed via the querystring the following is still used:
url_ += "start=" + encodeURIComponent(start ? "" + start.toJSON() : "") + "&";
Is it possible to change the toJSON() here to toISOString(true), keeping the offset?
The text was updated successfully, but these errors were encountered: