oxidecomputer / oxidecomputer/typify
Duplicate filed names when renaming fields is required
Open
Nobody has claimed this yet.
compile-fail
naming
- Dominant language
- Rust
- Stars
- 898
- Forks
- 114
- Avg merge
- 4h 18m
- Merged PRs (30d)
- 14
Description
When a type has 2 fields one is named url and the other is named _url this crate will produce a struct with 2 fields named url although a filed named _url would be valid.
Contributor guide
No contributing guide indexed for this repository
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
Start by reproducing the issue with a schema containing fields named url and _url, then inspect the generated Rust struct and the field-name transformation entry point. Done means the generated struct has distinct, valid field names for both schema fields, with a regression test covering this example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100