Js-graphql-intellij-plugin: Enum value of TRUE breaks schema

Created on 16 Apr 2019  路  3Comments  路  Source: jimkyndemeyer/js-graphql-intellij-plugin

My schema has enums with the value "TRUE" in them, remove the "TRUE"s and everything works fine.

Works

enum VideoDimensionSearchEnumParam {
  _2d
  _3d
  any
}

Breaks everything

enum VideoDimensionSearchEnumParam {
  _2d
  _3d
  any
  TRUE
}

Most helpful comment

I'm running into this as well. FALSE also breaks the schema, unsurprisingly.

All 3 comments

I'm running into this as well. FALSE also breaks the schema, unsurprisingly.

I'm guessing this is a result of https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/blob/master/src/grammars/GraphQLParser.bnf#L103

The lowercase values are specified there (as per the GraphQL spec https://graphql.github.io/graphql-spec/June2018/#sec-Enum-Value, true, false, and null are invalid enum values).

However, according to https://tools.ietf.org/html/rfc7405, string literals are matched case insensitively in BNF.

Fixed in the upcoming 2.1.1 release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ryanquinn3 picture ryanquinn3  路  5Comments

vjpr picture vjpr  路  4Comments

idkjs picture idkjs  路  3Comments

oknesar picture oknesar  路  5Comments

MichaelDeBoey picture MichaelDeBoey  路  4Comments