From 8f36bd1af5851c4db4d92e1624463ffdb2e92007 Mon Sep 17 00:00:00 2001 From: Naufal Aros Date: Thu, 31 Oct 2024 14:28:39 +0100 Subject: [PATCH] Explicitly indicate decoding value --- AdyenActions/Actions/RedirectAction.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AdyenActions/Actions/RedirectAction.swift b/AdyenActions/Actions/RedirectAction.swift index 3bba00e45d..6d2559dd7e 100644 --- a/AdyenActions/Actions/RedirectAction.swift +++ b/AdyenActions/Actions/RedirectAction.swift @@ -11,8 +11,9 @@ public struct RedirectAction: Decodable { /// Defines the type of redirect flow utilized by the `RedirectAction` object. public enum RedirectType: String, Decodable { - case redirect - case nativeRedirect + // swiftlint:disable redundant_string_enum_value + case redirect = "redirect" + case nativeRedirect = "nativeRedirect" public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer()