[release/10.0] Fix ModelMetadata null reference exception in emitted XMLComment transformers#33
Conversation
…ment transformers When a route parameter does not have a bound model it would case a null reference exception because the ModelMetadata on the ParameterDescriptor was null. This is fixed by adding a null reference check Fixes dotnet#63757
As I think this was the encoding before my change
WalkthroughThis PR introduces XML comment support for OpenAPI generation by adding a new test for route parameter documentation and applying defensive null-checks across multiple generated snapshot files to prevent null reference exceptions during metadata evaluation. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (10)
🔇 Additional comments (15)
✏️ Tip: You can disable this entire section by setting Comment |
Benchmark PR from agentic-review-benchmarks#8
Summary by CodeRabbit
New Features
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.