guardrail-dev / guardrail-dev/guardrail
Generating definition class which name is 'Option'
Open
bug
core
good first issue
help wanted
- Dominant language
- Scala
- Stars
- 541
- Forks
- 138
- PR merge metrics
- No merged PRs in 30d
Description
I have swagger docs which has some conflicting part:
```json
"option": {
"description": "Some options blabla",
"type": "object",
"properties": {
"inventorySource": {bla bla}
}
}
```
So by default generated case class for this object looks like this:
`case class Option(...)`
which obviously conflicts with scala Option which results for example with this error:
```
.myPackage.definitions.myRequest.Option does not take type parameters
```
Is it a way to generate definiton class with some prefix to avoid collision like this ?
Contributor guide
Assessment
This issue has not been assessed yet.