guardrail-dev / guardrail-dev/guardrail
Incorrect names for enum values
Open
- Dominant language
- Scala
- Stars
- 541
- Forks
- 138
- PR merge metrics
- No merged PRs in 30d
Description
For a enum like this
```
"enum": [
"datetime",
"-datetime"
]
```
guardrail will generate two objects with same name `Datetime`
Contributor guide
Research direction
Start by reproducing the issue with the enum schema shown in the report, then trace the code-generation path that derives names for enum values. Determine how the generated objects are represented and what existing checks cover naming; done means the two values no longer produce duplicate object names and the relevant tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi, scala
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100