Skip to content

Commit

Permalink
Expose expected agent version so cli + terraform can use it precisely (
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino authored Apr 30, 2024
1 parent 94bf865 commit 27cef81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AGENT_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.4.23
v0.4.24
6 changes: 4 additions & 2 deletions lib/console/graphql/schema/custom_types.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ defmodule Console.GraphQl.CustomTypes do
serialize &mapish/1
parse fn
%Blueprint.Input.String{value: value}, _ ->
Jason.decode(value)
with {:error, _} <- Jason.decode(value),
do: {:error, "invalid json encoding"}
%Blueprint.Input.Null{}, _ -> {:ok, nil}
_, _ -> :error
end
Expand All @@ -16,7 +17,8 @@ defmodule Console.GraphQl.CustomTypes do
serialize &mapish/1
parse fn
%Blueprint.Input.String{value: value}, _ ->
Jason.decode(value)
with {:error, _} <- Jason.decode(value),
do: {:error, "invalid json encoding"}
%Blueprint.Input.Null{}, _ -> {:ok, nil}
_, _ -> :error
end
Expand Down

0 comments on commit 27cef81

Please sign in to comment.