Skip to content

Add rfc1123 datetime#485

Merged
kairu-ms merged 5 commits intoAzure:devfrom
AllyW:add-datetime-1123
Jun 5, 2025
Merged

Add rfc1123 datetime#485
kairu-ms merged 5 commits intoAzure:devfrom
AllyW:add-datetime-1123

Conversation

@AllyW
Copy link
Copy Markdown
Contributor

@AllyW AllyW commented May 19, 2025

Currently, codegen already supports date-time format, its corresponding arg in cli aaz is AAZDateTimeArg, with AAZDateTimeFormat using a default protocol iso.

For rfc-1123, the difference in cli core is the format protocol to be rfc

swagger example: https://github.com/Azure/azure-rest-api-specs/blob/bd98c68b0a0b91e8479f7eb121d488f8f78d4d86/specification/storage/data-plane/Microsoft.BlobStorage/stable/2025-07-05/blob.json#L7148

date-time format string:
image

date-time-rfc1123 format string:
image

diff = {}

if level >= CMDDiffLevelEnum.BreakingChange:
if self.protocol and self.protocol == old.protocol and self.protocol != old.protocol:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

what this if means?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

For checking whether two cmds can be merged. (But seems now will always be overwritten by following part)

Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com>
@kairu-ms kairu-ms merged commit 07e18ab into Azure:dev Jun 5, 2025
3 checks passed
@necusjz necusjz mentioned this pull request Jul 9, 2025
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