diff --git a/source/graphql/schema/typeconversions.d b/source/graphql/schema/typeconversions.d index 62aba067..cd30a8a2 100644 --- a/source/graphql/schema/typeconversions.d +++ b/source/graphql/schema/typeconversions.d @@ -270,7 +270,7 @@ Json typeToJson(Type,Schema)() { // remove the array is present Json typeToJson1(Type,Schema,Orig)() { - static if(isArray!Type && !isSomeString!Type) { + static if(isArray!Type && !isSomeString!Type && !is(Type == enum)) { Json ret = emptyType(); ret["kind"] = "LIST"; ret[Constants.__typename] = "__Type";