From 98ed4fa03ba525e227c4ff4b57c781bccb03273f Mon Sep 17 00:00:00 2001 From: Alan Heywood Date: Thu, 14 Oct 2021 11:57:04 +1000 Subject: [PATCH] Enforce non_null message and message list --- lib/absinthe_error_payload/payload.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/absinthe_error_payload/payload.ex b/lib/absinthe_error_payload/payload.ex index 3d24743..473c7a3 100644 --- a/lib/absinthe_error_payload/payload.ex +++ b/lib/absinthe_error_payload/payload.ex @@ -122,7 +122,7 @@ defmodule AbsintheErrorPayload.Payload do quote location: :keep do object unquote(payload_name) do field(:successful, non_null(:boolean), description: "Indicates if the mutation completed successfully or not. ") - field(:messages, list_of(:validation_message), description: "A list of failed validations. May be blank or null if mutation succeeded.") + field(:messages, non_null(list_of(non_null(:validation_message))), description: "A list of failed validations. May be blank or null if mutation succeeded.") field(:result, unquote(result_object_name), description: "The object created/updated/deleted by the mutation. May be null if mutation failed.") end end