[BUG] startDate&endDate returned by service should be in ISO 8601 format #33009
Labels
Billing
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Mgmt
This issue is related to a management-plane library.
Service Attention
Workflow: This issue is responsible by Azure service team.
API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/billing/resource-manager/Microsoft.Billing/stable/2024-04-01/billingAccount.json#L895
API Spec version
2024-04-01
Describe the bug
By the swagger definition, startDate&endDate of EnrollmentDetails were defined as
date-time
which should follow the iso-8601 protocol, or it would cause deserialization error in the SDK.Expected behavior
All properties which defined as
date-time
should follow iso-8601 format in service response.Actual behavior
It returns in format like
{'startDate': '3/31/2015 12:00:00 AM +00:00', 'endDate': '3/31/2018 12:00:00 AM +00:00'}
which would cause deserialization error.Reproduction Steps
Call api: https://learn.microsoft.com/en-us/rest/api/billing/billing-accounts/list?view=rest-billing-2024-04-01&tabs=HTTP
Environment
No response
The text was updated successfully, but these errors were encountered: