amplitude / amplitude/homebrew-ampli

Ampli CLI generate invalid Swift code

オープン
#9 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Ruby
スター
2
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

An enum is defined on Amplitude with the values `edit` and `continue`.

This generate the following swift enum

```
public enum Action: String {
case edit = "edit"
case continue = "continue"
}
```

This doesn't compile because continue is a swift keyword therefore not a valid identifier

Ampli generator must escape all values corresponding to swift keywords like this:

```
case `continue` = "continue"
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。