Skip to content

Commit

Permalink
wrap enum values into quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
nsidnev committed Oct 10, 2023
1 parent 56af269 commit f3687c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/edgedb/edgeql/generator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ defmodule EdgeDB.EdgeQL.Generator do
defp codec_to_shape(%Codecs.Enum{name: type_name, members: members}, _codec_storage) do
full_type_name = full_name_to_typespec(type_name)
typedoc = "scalar type #{type_name} extending enum<#{Enum.join(members, ", ")}>"
register_typespec(full_type_name, {typedoc, ["String.t()" | Enum.map(members, &":#{&1}")]})
register_typespec(full_type_name, {typedoc, ["String.t()" | Enum.map(members, &":#{inspect(&1)}")]})
%{type: :builtin, typespec: full_type_name}
end

Expand Down

0 comments on commit f3687c3

Please sign in to comment.