luckyframework / luckyframework/avram
SchemaEnforcer: Only show belongs to example if it ends in id
Open
Nobody has claimed this yet.
- Dominant language
- Crystal
- Stars
- 183
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Only show belongs to example if the column name ends in _id
That way it isn’t as misleading
https://github.com/luckyframework/avram/blob/6c40238116985ec4c31834e5323682e6871bbb3f/src/avram/schema_enforcer.cr#L162
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open src/avram/schema_enforcer.cr around line 162 and inspect how the belongs-to example is selected. Limit that example to column names ending in _id, then check the existing schema-enforcer tests or test suite to confirm the example is omitted for other column names.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- crystal
- Domain
- database
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100