Skip to content

Commit

Permalink
Fix decoding unkeyed containers
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinWalter committed May 30, 2021
1 parent 088c1a0 commit 290398e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ struct CallbackURLDecoder: Decoder {
}

func unkeyedContainer() throws -> UnkeyedDecodingContainer {
fatalError()
UnkeyedContainer(
codingPath: codingPath,
items: queries.map(\.key)
)
}

func singleValueContainer() throws -> SingleValueDecodingContainer {
Expand Down

0 comments on commit 290398e

Please sign in to comment.