You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(ruby): mark deprecated elements with YARD tags and opt-in warnings - #8477
Deprecated operations, paths, models, enums, properties and parameters get a YARD @deprecated tag with the description's text, date, removal date and version. Calling a deprecated operation or path also calls ::Kernel.warn(..., category: :deprecated), which stays silent unless the program enables Warning[:deprecated], like Ruby's own deprecations.
On GitHub's description (38 deprecated operations) this gives 159 tags and 88 warnings, RuboCop clean; client.classrooms warns only when enabled. A Ruby IT spec checks that a deprecated path warns only when enabled.
Adds deprecation documentation and opt-in runtime warnings to generated Ruby SDKs. Also corrects navigation accessors to inherit deprecation metadata from their destination path.
Changes:
Adds YARD deprecation tags and parameter notes using shared message formatting.
Emits categorized warnings for deprecated calls while keeping request generators quiet.
Adds writer tests, navigation metadata coverage, and a Ruby integration test.
ToDeprecationInformation() XML-escapes schema descriptions, so Use "new-api" instead is printed as Use "new-api" instead when deprecation warnings are enabled. Decode the message before Ruby-literal escaping so warnings display the original text. Add a regression case using schema-derived, XML-escaped deprecation text.
The reason will be displayed to describe this comment to others. Learn more.
🟢 Approval recommended
Static review found no unresolved blocking issues, and focused regression coverage addresses metadata propagation, warning escaping, and opt-in behavior.
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
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.
Closes microsoft/kiota-ruby#64. Builds on #8476.
Deprecated operations, paths, models, enums, properties and parameters get a YARD
@deprecatedtag with the description's text, date, removal date and version. Calling a deprecated operation or path also calls::Kernel.warn(..., category: :deprecated), which stays silent unless the program enablesWarning[:deprecated], like Ruby's own deprecations.On GitHub's description (38 deprecated operations) this gives 159 tags and 88 warnings, RuboCop clean;
client.classroomswarns only when enabled. A Ruby IT spec checks that a deprecated path warns only when enabled.