99designs / 99designs/gqlgen

Schema generator failed for `/` character into enum

Đang mở
#1,135 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
10.8k
Fork
1.3k
Merge trung bình
2 ngày 36 phút
Pull request đã merge (30 ngày)
26

Mô tả

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.