Add text/plain response support to IMessageResponseBuilder#45
Merged
Conversation
…lder
- Add AddSuccessTextResponse / AddErrorTextResponse that bypass the
contract serializer and return the body verbatim as a string
- Mirror AddTypedResponse<T> empty-body semantics (null for whitespace)
- Cover via 9 tests (verbatim body, string-typed ContentObject, empty
body, serializer-not-invoked, error path, coexistence, fluent chain)
- Document the new methods in README with a usage section and API
reference update
- Sync .editorconfig files to atc-coding-rules v1.0.1 (inline rule
descriptions, drop Asyncify / SecurityCodeScan sections)
- Drop Asyncify and SecurityCodeScan.VS2019 package references
- Bump Atc.Analyzer 0.1.22 -> 0.1.23
- Bump Meziantou.Analyzer 3.0.7 -> 3.0.50
- Bump SonarAnalyzer.CSharp 10.19.0 -> 10.24.0
- Bump Microsoft.SourceLink.GitHub 10.0.103 -> 10.0.203
- Bump Microsoft.Testing.Extensions.CodeCoverage 18.4.1 -> 18.6.2
- Bump Microsoft.Testing.Extensions.TrxReport 2.1.0 -> 2.2.1
perkops
approved these changes
Apr 22, 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.
Summary
text/plainclients from the REST generatorChanges
✨ Features
AddSuccessTextResponse(HttpStatusCode)to the builderAddErrorTextResponse(HttpStatusCode)to the builderAddTypedResponse<T>empty-body semantics (null for whitespace)📝 Documentation
IMessageResponseBuilderblock in the API reference📦 Dependencies
🔥 Removal
🔧 Configuration
Notes
Atc.Rest.Clienttargetsnetstandard2.0, so default interfacemethods are unavailable - the new methods are plain additions
IMessageResponseBuildermust add the two methods on upgradeReadAsStringAsync; no extra handling neededEndpointPerOperationtext clientsfrom inline emission to the canonical builder pathway