Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix serialization bug #41139

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("messageId", this.messageId);
jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString());
jsonWriter.writeJsonField("deliveryStatusDetails", this.deliveryStatusDetails);
jsonWriter.writeStringField("deliveryAttemptTimeStamp", this.deliveryAttemptTimestamp == null ? null
jsonWriter.writeStringField("deliveryAttemptTimestamp", this.deliveryAttemptTimestamp == null ? null
: DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.deliveryAttemptTimestamp));
return jsonWriter.writeEndObject();
}
Expand Down Expand Up @@ -218,7 +218,7 @@ public static AcsEmailDeliveryReportReceivedEventData fromJson(JsonReader jsonRe
} else if ("deliveryStatusDetails".equals(fieldName)) {
deserializedAcsEmailDeliveryReportReceivedEventData.deliveryStatusDetails
= AcsEmailDeliveryReportStatusDetails.fromJson(reader);
} else if ("deliveryAttemptTimeStamp".equals(fieldName)) {
} else if ("deliveryAttemptTimestamp".equals(fieldName)) {
deserializedAcsEmailDeliveryReportReceivedEventData.deliveryAttemptTimestamp
= reader.getNullable(nonNullReader -> OffsetDateTime.parse(nonNullReader.getString()));
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("sender", this.sender);
jsonWriter.writeStringField("recipient", this.recipient);
jsonWriter.writeStringField("messageId", this.messageId);
jsonWriter.writeStringField("userActionTimeStamp", this.userActionTimestamp == null ? null
jsonWriter.writeStringField("userActionTimestamp", this.userActionTimestamp == null ? null
: DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.userActionTimestamp));
jsonWriter.writeStringField("engagementContext", this.engagementContext);
jsonWriter.writeStringField("userAgent", this.userAgent);
Expand Down Expand Up @@ -238,7 +238,7 @@ public static AcsEmailEngagementTrackingReportReceivedEventData fromJson(JsonRea
deserializedAcsEmailEngagementTrackingReportReceivedEventData.recipient = reader.getString();
} else if ("messageId".equals(fieldName)) {
deserializedAcsEmailEngagementTrackingReportReceivedEventData.messageId = reader.getString();
} else if ("userActionTimeStamp".equals(fieldName)) {
} else if ("userActionTimestamp".equals(fieldName)) {
deserializedAcsEmailEngagementTrackingReportReceivedEventData.userActionTimestamp
= reader.getNullable(nonNullReader -> OffsetDateTime.parse(nonNullReader.getString()));
} else if ("engagementContext".equals(fieldName)) {
Expand Down
54 changes: 27 additions & 27 deletions sdk/eventgrid/azure-messaging-eventgrid/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,33 +81,33 @@ custom-types: CloudEvent,EventGridEvent,AcsRouterCommunicationError,AcsMessageCh
model-override-setter-from-superclass: true

input-file:
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.EventHub/stable/2018-01-01/EventHub.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.Devices/stable/2018-01-01/IotHub.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.ServiceBus/stable/2018-01-01/ServiceBus.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.Media/stable/2018-01-01/MediaServices.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.Maps/stable/2018-01-01/Maps.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.AppConfiguration/stable/2018-01-01/AppConfiguration.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.SignalRService/stable/2018-01-01/SignalRService.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.KeyVault/stable/2018-01-01/KeyVault.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.MachineLearningServices/stable/2018-01-01/MachineLearningServices.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.Cache/stable/2018-01-01/RedisCache.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.PolicyInsights/stable/2018-01-01/PolicyInsights.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.ContainerService/stable/2018-01-01/ContainerService.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/APIManagement.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.DataBox/stable/2018-01-01/DataBox.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/common.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.AVS/stable/2018-01-01/PrivateCloud.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5bc43b02efc097affda7d0bf23285f24433d6364/specification/eventgrid/data-plane/Microsoft.ApiCenter/stable/2018-01-01/ApiCenter.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.EventHub/stable/2018-01-01/EventHub.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.Devices/stable/2018-01-01/IotHub.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.ServiceBus/stable/2018-01-01/ServiceBus.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.Media/stable/2018-01-01/MediaServices.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.Maps/stable/2018-01-01/Maps.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.AppConfiguration/stable/2018-01-01/AppConfiguration.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.SignalRService/stable/2018-01-01/SignalRService.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.KeyVault/stable/2018-01-01/KeyVault.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.MachineLearningServices/stable/2018-01-01/MachineLearningServices.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.Cache/stable/2018-01-01/RedisCache.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.PolicyInsights/stable/2018-01-01/PolicyInsights.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.ContainerService/stable/2018-01-01/ContainerService.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/APIManagement.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.DataBox/stable/2018-01-01/DataBox.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/common.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.AVS/stable/2018-01-01/PrivateCloud.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1b0e82df2f7f953796af2aee0372e34e00baa2d2/specification/eventgrid/data-plane/Microsoft.ApiCenter/stable/2018-01-01/ApiCenter.json
```

### KeyVault updates
Expand Down