guardrail-dev / guardrail-dev/guardrail

Question: Can I override name of generated case classes?

Open
#354 7 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Scala
Stars
541
Forks
138
PR merge metrics
No merged PRs in 30d

Description

1. Is it possible to override the names of the generated cases classes for my model types?

e.g. In the schema below a case class called `Foo` would be generated. Is it possible to change the to a different name without changing the `Foo` attribute. I'd like the entity to be called `Foo` in our docs, but `FooApi` internally in the code.

```yaml
definitions:
Foo:
type: object
properties:
...
```

2. Is there a Gitter/Slack room where questions such as this should be directed?

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.