Repository navigation
feat(ruby): use the primary error message as the error's message - #8348
Merged
Vincent Biret (baywet) merged 1 commit intoOct 7, 2026
Merged
Vincent Biret (baywet) merged 1 commit into
Vincent Biret (baywet) merged 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The implementation is focused, consistent with existing language behavior, and adequately covered by unit and integration tests.
Review effort: Balanced
Findings: None
What changed in this PR
Adds Ruby support for returning the OpenAPI primary error message through an error’s message method.
Changes:
- Adds Ruby error-message override generation.
- Adds unit and integration coverage for direct, nested, and absent primary messages.
- Documents the behavior.
| File | Description |
|---|---|
src/Kiota.Builder/Refiners/RubyRefiner.cs |
Adds primary-message properties to Ruby errors. |
src/Kiota.Builder/Writers/Ruby/CodePropertyWriter.cs |
Generates the Ruby message override. |
tests/Kiota.Builder.Tests/Refiners/RubyLanguageRefinerTests.cs |
Tests message-property collision handling. |
tests/Kiota.Builder.Tests/Writers/Ruby/CodePropertyWriterTests.cs |
Tests generated message methods. |
tests/Kiota.Builder.IntegrationTests/InheritingErrors.yaml |
Adds a nested primary-message error schema. |
it/ruby/spec/basic/integration_test_basic.rb |
Verifies the runtime exception message. |
CHANGELOG.md |
Documents the Ruby behavior. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Vincent Biret (baywet)
approved these changes
Oct 7, 2026
Vincent Biret (baywet)
left a comment
Member
There was a problem hiding this comment.
Thanks for the contribution!
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.
Fix microsoft/kiota-ruby#63