azure-rest-api-specs icon indicating copy to clipboard operation
azure-rest-api-specs copied to clipboard

[BUG] [ResourceHealth] Property refreshTimestamp returned by the service does not follow the RFC format

Open ChenxiJiang333 opened this issue 1 year ago • 1 comments

API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json#L2121C10-L2121C26

API Spec version

2022-10-01

Describe the bug

The API https://learn.microsoft.com/en-us/rest/api/resourcehealth/emerging-issues/list?view=rest-resourcehealth-2022-10-01&tabs=HTTP returns property refreshTimestamp with value in format like 2024-10-30 06:54:11Z. Yet according to https://datatracker.ietf.org/doc/html/rfc3339#section-5.8, a vaild date-time string should be like 2024-10-30T06:54:11Z.

Expected behavior

Return date-time string in format like 2024-10-30T06:54:11Z.

Actual behavior

It returns 2024-10-30 06:54:11Z that is not a valid date-time string and has caused deserialization error in SDK.

Reproduction Steps

Calling API https://learn.microsoft.com/en-us/rest/api/resourcehealth/emerging-issues/list?view=rest-resourcehealth-2022-10-01&tabs=HTTP.

Environment

No response

ChenxiJiang333 avatar Oct 30 '24 07:10 ChenxiJiang333

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @stephbaron.