[release/10.0] Fix ModelMetadata null reference exception in emitted XMLComment transformers#8
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
📝 WalkthroughWalkthroughA new test case is added to verify route parameter binding from controller actions into OpenAPI documentation. Multiple snapshot test files are updated with null-checks to prevent NullReferenceException when accessing parameter metadata properties during OpenAPI XML comment processing. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 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
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Benchmark PR from agentic-review-benchmarks#8
Summary by CodeRabbit
Tests
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.