guardrail-dev / guardrail-dev/guardrail

Capitalize the objects in scala

Open
#481 8 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue help wanted scala
Dominant language
Scala
Stars
541
Forks
138
PR merge metrics
No merged PRs in 30d

Description

## Background and questions

Now in official swagger-java generator, the objects in `#/definitions` will be capitalized when generating, but in `guardrail`, this feature is missing.

## Example

Say I have a object like:

```
"healthStatus": {
"type": "object",
"properties": {
"status": {
"description": "Status always contains \"ok\".",
"type": "string",
}
}
}
```

`guardrail` will generate the code like:

```
case class healthStatus(status: Option[String] = None)
```

But what I want is `HealthStatus`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.