Repository navigation
fix(dbml): report one-based model line numbers - #160
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
Merged, thanks @syedmustafan. Clean one-line fix, and the test pins both models. I added the CHANGELOG entry in #165. Heads-up for next time: #139 had been offered to @vishalhabib99 in the thread, so please leave a short "I'll take this" on an issue before starting. It saves two people doing the same work. |
Fixes #139.
DBML model notes exposed ParsedModel.line_number directly even though it is zero-based, producing source locations one line early. Add one when formatting the human-facing note and cover the behavior with fixture-backed tests.
Tests:
PYTHONPATH=cli python3 -m unittest cli.tests.test_er_formats(16 passed).Summary by CodeRabbit