[chore][cmd/mdatagen] Enhance schema ID resolution for local references - #14770
Conversation
Merging this PR will not alter performance
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14770 +/- ##
==========================================
- Coverage 91.39% 91.39% -0.01%
==========================================
Files 695 695
Lines 44400 44403 +3
==========================================
Hits 40581 40581
- Misses 2686 2688 +2
- Partials 1133 1134 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…es (open-telemetry#14770) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description This pull request provides fix for json schema generator: fixed a gap in schema ID resolution algorithm: local refs with relative paths (./...) were previously not resolved against a local-absolute origin schema ID — they are now correctly joined. <!-- Issue number if applicable --> #### Link to tracking issue Related to open-telemetry#14559 <!--Describe what testing was performed and which tests were added.--> #### Testing New test cases added to namespace_test.go
Description
This pull request provides fix for json schema generator: fixed a gap in schema ID resolution algorithm: local refs with relative paths (./...) were previously not resolved against a local-absolute origin schema ID — they are now correctly joined.
Link to tracking issue
Related to #14559
Testing
New test cases added to namespace_test.go