Skip to content
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

use-string-as-offset-datetime-type-in-modular #2019

Merged

Conversation

qiaozha
Copy link
Member

@qiaozha qiaozha commented Sep 15, 2023

Copy link
Contributor

@MaryGao MaryGao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qiaozha qiaozha merged commit b48d34a into Azure:main Sep 15, 2023
28 checks passed
@qiaozha qiaozha deleted the use-string-as-offset-datetime-type-in-modular branch September 15, 2023 06:29
@@ -1080,7 +1080,7 @@ function emitStdScalar(
case "plainTime":
return { type: "datetime", format: newScalar.format ?? "time" };
case "offsetDateTime":
return { type: "datetime", format: newScalar.format ?? "rfc7231" };
return { type: "string" };
Copy link
Contributor

@MaryGao MaryGao Sep 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we should apply this change to RLC also?

I have no strong preference but it seems reasonable to not generate Date for RLC if modular won't use date.

Core would use ISO format by default.
https://github.com/MaryGao/azure-sdk-for-js/blob/update-emitter-package-lock-file/sdk/core/core-client-rest/src/urlHelpers.ts#L50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants