99designs / 99designs/gqlgen

Schema generator failed for `/` character into enum

未关闭
#1,135 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
10.8k
派生
1.3k
平均合并
2 天 36 分钟
30 天内合并 PR
26

描述

### What happened?
Enum with `/` character failed with error "Expected Name, found " during schema generation.
### What did you expect?
I expect to be able to specify every type of enum data, maybe using an escape character if needed.

### Minimal graphql.schema and models to reproduce
```
enum Season {
S/S
A/W
}

type Product {
name: String!
season: Season
}

type ProductInput {
name: String!
season: Season
}
```

### versions
- `gqlgen v0.11.1`
- `go version go1.14`
- via `go modules`

Thanks

Paolo

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。