eikek / eikek/sbt-openapi-schema

reserved scala words within properties leads to compile errors

Open
#105 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
27
Forks
8
PR merge metrics
No merged PRs in 30d

Description

i was testing out this plugin and had a case where a field was defined as `type` which lead to a compile time error.

I'm open to some potential workarounds or a possible fix by wrapping fieldNames with backticks

```
Example:
description: example
properties:
type:
type: string
```

which could generate as the following

```
case class(`type`: String)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.