Remove all StructuredBody fields from public results#6963
Merged
Jinming-Hu merged 2 commits intoAzure:mainfrom Feb 24, 2026
Merged
Remove all StructuredBody fields from public results#6963Jinming-Hu merged 2 commits intoAzure:mainfrom
StructuredBody fields from public results#6963Jinming-Hu merged 2 commits intoAzure:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes the StructuredBodyType (x-ms-structured-body) surface from public result models in the Storage Blobs / Files Shares / Files DataLake SDKs, aligning the generated Swagger transforms with the C++ REST client result types.
Changes:
- Updates Swagger transform directives to delete the
x-ms-structured-bodyresponse header where it previously generated public result fields. - Removes
StructuredBodyTypefrom affected public result structs in generatedrest_client.hpp. - Removes REST response-header parsing that populated
StructuredBodyTypein generatedrest_client.cpp.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/storage/azure-storage-files-shares/swagger/README.md | Deletes x-ms-structured-body from the UploadRange response headers in Swagger transforms. |
| sdk/storage/azure-storage-files-shares/src/rest_client.cpp | Stops reading x-ms-structured-body into the UploadRange result model. |
| sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/rest_client.hpp | Removes StructuredBodyType from UploadFileRangeResult. |
| sdk/storage/azure-storage-files-datalake/swagger/README.md | Deletes x-ms-structured-body from the Append response headers in Swagger transforms. |
| sdk/storage/azure-storage-files-datalake/src/rest_client.cpp | Stops reading x-ms-structured-body into the Append result model. |
| sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/rest_client.hpp | Removes StructuredBodyType from AppendFileResult. |
| sdk/storage/azure-storage-blobs/swagger/README.md | Deletes x-ms-structured-body from several Blob upload-related response headers in Swagger transforms. |
| sdk/storage/azure-storage-blobs/src/rest_client.cpp | Stops reading x-ms-structured-body into several blob upload-related result models. |
| sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/rest_client.hpp | Removes StructuredBodyType from several blob upload-related public result structs. |
sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/rest_client.hpp
Show resolved
Hide resolved
sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/rest_client.hpp
Show resolved
Hide resolved
microzchang
approved these changes
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Checklist
Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:
See the detailed list in the contributing guide.