Repository navigation
fix: mark the accessor to a deprecated path as deprecated, not the one under a deprecated parent - #8476
Merged
Vincent Biret (baywet) merged 1 commit intoOct 27, 2026
Conversation
…e under a deprecated parent
Contributor
|
Thanks for opening this pull request! Please link it to an issue by adding the fixes syntax to the pull request description, for example: |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The narrow correction aligns with other navigation accessors, includes focused regression coverage, and has no identified blocking issues.
No open issues 🎉
What changed in this PR
Corrects navigation-property deprecation so an accessor reflects the child path it leads to, rather than its parent path.
Changes:
- Uses the child node’s deprecation metadata when creating navigation properties.
- Adds regression coverage and integration fixtures for deprecated endpoints and query parameters.
- Documents the behavior correction in the changelog.
| File | Description |
|---|---|
tests/Kiota.Builder.Tests/KiotaBuilderTests.cs |
Verifies deprecated child metadata and unaffected live accessors. |
tests/Kiota.Builder.IntegrationTests/GeneratesUritemplateHints.yaml |
Adds a deprecated endpoint and query parameter. |
src/Kiota.Builder/KiotaBuilder.cs |
Sources navigation-property deprecation from the child node. |
CHANGELOG.md |
Describes the corrected deprecation behavior. |
Review effort: Balanced
Vincent Biret (baywet)
approved these changes
Oct 27, 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.
A navigation property took the deprecation of the path it is declared on, not of the path it leads to: a deprecated
/legacyunder a live/apiwas not flagged, and every child of a deprecated path was. It now takes the child path's deprecation.GeneratesUritemplateHints.yamlgains a deprecated path and a deprecated operation; it generates and builds in all languages, and generation stays idempotent.