Skip to content

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

Merged
qiaozha merged 1 commit intoAzure:mainfrom
qiaozha:use-string-as-offset-datetime-type-in-modular
Sep 15, 2023
Merged

use-string-as-offset-datetime-type-in-modular#2019
qiaozha merged 1 commit intoAzure:mainfrom
qiaozha:use-string-as-offset-datetime-type-in-modular

Conversation

@qiaozha
Copy link
Copy Markdown
Member

@qiaozha qiaozha commented Sep 15, 2023

Copy link
Copy Markdown
Member

@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
@qiaozha qiaozha deleted the use-string-as-offset-datetime-type-in-modular branch September 15, 2023 06:29
return { type: "datetime", format: newScalar.format ?? "time" };
case "offsetDateTime":
return { type: "datetime", format: newScalar.format ?? "rfc7231" };
return { type: "string" };
Copy link
Copy Markdown
Member

@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.

2 participants