Skip to content

Fix azure_security_keyvault handling of optional datetime fields#1021

Merged
rylev merged 2 commits intoAzure:mainfrom
cataggar:default_sdk_option
Aug 18, 2022
Merged

Fix azure_security_keyvault handling of optional datetime fields#1021
rylev merged 2 commits intoAzure:mainfrom
cataggar:default_sdk_option

Conversation

@cataggar
Copy link
Member

@cataggar cataggar commented Aug 17, 2022

Same fix as #1020, but for the SDKs. Fixed by reviewing the changes in #965. Fixes are in:

  • sdk/security_keyvault/src/certificates/operations/update_properties.rs
  • sdk/security_keyvault/src/secrets/operations/update_secret.rs
  • sdk/storage_blobs/src/blob/mod.rs when feature = "azurite_workaround"

This is primarily a azure_security_keyvault fix.

pub enabled: bool,
#[serde(default)]
#[serde(with = "azure_core::date::timestamp::option")]
#[serde(default, with = "azure_core::date::timestamp::option")]
Copy link
Member Author

Choose a reason for hiding this comment

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

Some of these are fine already. It is just consistent formatting.

struct Attributes {
enabled: Option<bool>,
#[serde(with = "azure_core::date::timestamp::option", rename = "exp")]
#[serde(default, with = "azure_core::date::timestamp::option", rename = "exp")]
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a fix.

struct Attributes {
enabled: Option<bool>,
#[serde(with = "azure_core::date::timestamp::option", rename = "exp")]
#[serde(default, with = "azure_core::date::timestamp::option", rename = "exp")]
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a fix.

@cataggar cataggar marked this pull request as ready for review August 17, 2022 16:37
@cataggar cataggar changed the title Fix SDK handling of optional datetime fields Fix azure_security_keyvault handling of optional datetime fields Aug 17, 2022
@rylev rylev merged commit c6eea92 into Azure:main Aug 18, 2022
@cataggar cataggar deleted the default_sdk_option branch August 18, 2022 12:48
@cataggar cataggar added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This issue requires a change to an existing behavior in the product in order to be resolved.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants