[Storage] Pageable operations attempt to deserialize `204 No Content`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 64/100
Research direction
Start with the mocked test referenced in the linked pull request comment and trace the generated response handling for a pageable operation returning 204. Confirm that the no-content response completes without deserialization and that the test no longer reports a deserialization error.
Written by the indexing model from the issue text.
Description
More context found in this PR comment: https://github.com/Azure/azure-sdk-for-rust/pull/5273/changes#r3973832539
But in short:
- TypeSpec Rust emitter treats every successful (2xx) response as having a body that needs to be deserialized
- However, 204 literally maps to
No Content, meaning there is no body - Therefore, for a 204 it still attempts to deserializes, and since there is no body, it will actually bubble this up as some sort of deserialization error
- I believe the correct behavior here is that
204 No Contentshould be explicitly handled to not attempt deserialization
The above PR comment targets a mocked test showing this attempt to deserialize on a 204 response.
- Dominant language
- Rust
- Stars
- 7
- Forks
- 11
- Avg merge
- 14h 15m
- Merged PRs (30d)
- 6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/typespec-rust
-
CodeGen rust
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Azure/typespec-rust#959 ·
-
CodeGen
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Azure/typespec-rust#1029 ·
-
CodeGen
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Azure/typespec-rust#1028 ·
-
CodeGen
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Azure/typespec-rust#1020 ·
-
feature-request Storage
Difficulty 5/5 Over a week Newbie friendliness 35/100
Azure/typespec-rust#1017 · 3 comments ·
All issues in Azure/typespec-rust
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100