Skip to content

Conversation

@GarrettBeatty
Copy link
Contributor

@GarrettBeatty GarrettBeatty commented Oct 29, 2025

Update mapping.json for response/request mapping to latest version

Description

Update mapping.json for response/request mapping to latest version. Also update corresponding classes to compensate for those changes.

Motivation and Context

To comply with the SEP

Testing

  1. Ran responsemapper tests locally
  2. Dry run d2697b31-2558-4144-8a79-8485f4e82372 pass

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed

License

  • I confirm that this pull request can be released under the Apache 2 license

@GarrettBeatty GarrettBeatty changed the base branch from main to feature/transfermanager October 29, 2025 17:03
@GarrettBeatty GarrettBeatty requested a review from Copilot October 29, 2025 17:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the response mapping logic between S3 SDK response objects (PutObjectResponse, CompleteMultipartUploadResponse) and the Transfer Utility's TransferUtilityUploadResponse class. The changes expand the mapped properties to include additional fields like BucketName, Key, Location, and Size, along with configuration file updates and test improvements.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
sdk/src/Services/S3/Custom/Transfer/TransferUtilityUploadResponse.cs Added new properties: BucketName, Key, Location, and Size with documentation
sdk/src/Services/S3/Custom/Transfer/Internal/ResponseMapper.cs Updated mapping methods to include new properties for both PutObject and CompleteMultipartUpload responses
sdk/test/Services/S3/UnitTests/Custom/EmbeddedResource/mapping.json Added property mappings for new fields in both request and response conversions
sdk/test/Services/S3/UnitTests/Custom/EmbeddedResource/property-aliases.json Added BucketName alias mappings for response types
sdk/test/Services/S3/UnitTests/Custom/ResponseMapperTests.cs Fixed test value generation for int/long types and corrected usesHeadersCollection flag
generator/.DevConfigs/7f23582e-3225-487b-83e7-167cf17cb238.json Added dev config for patch version update

@GarrettBeatty GarrettBeatty changed the title Gcbeatty/mappingupdate Update mapping.json for response/request mapping to latest version Oct 29, 2025
@GarrettBeatty GarrettBeatty marked this pull request as ready for review October 29, 2025 17:35
return simpleUploadCommand.ConstructRequest();
},
usesHeadersCollection: false,
usesHeadersCollection: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

since CacheControl was added to mapping and thats located in headers we have to search there now

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.

3 participants