guardrail-dev / guardrail-dev/guardrail

Incorrect names for enum values

Open
#1,958 4 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.