From 290398e1a834478935159ff7357b20b79a852304 Mon Sep 17 00:00:00 2001 From: Valentin Walter Date: Sun, 30 May 2021 22:38:31 +0200 Subject: [PATCH] Fix decoding unkeyed containers --- .../Internal/CallbackURLDecoder/CallbackURLDecoder.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/Middleman/Internal/CallbackURLDecoder/CallbackURLDecoder.swift b/Sources/Middleman/Internal/CallbackURLDecoder/CallbackURLDecoder.swift index 0278824..c7cebaa 100644 --- a/Sources/Middleman/Internal/CallbackURLDecoder/CallbackURLDecoder.swift +++ b/Sources/Middleman/Internal/CallbackURLDecoder/CallbackURLDecoder.swift @@ -46,7 +46,10 @@ struct CallbackURLDecoder: Decoder { } func unkeyedContainer() throws -> UnkeyedDecodingContainer { - fatalError() + UnkeyedContainer( + codingPath: codingPath, + items: queries.map(\.key) + ) } func singleValueContainer() throws -> SingleValueDecodingContainer {