99designs / 99designs/gqlgen

Schema generator failed for `/` character into enum

Open
#1,135 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
10.8k
Forks
1.3k
Avg merge
2d 36m
Merged PRs (30d)
26

Description

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

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.