Skip to content

Commit 439a3bd

Browse files
authored
Make 'index' optional in MixedItem to fix decoding error (#116)
1 parent abf397e commit 439a3bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AIProxy/Brave/BraveWebSearchResponseBody.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ extension BraveWebSearchResponseBody {
5959

6060
public struct MixedItem: Decodable {
6161
public let all: Bool
62-
public let index: Int
62+
public let index: Int?
6363
public let type: String
6464
}
6565
}

0 commit comments

Comments
 (0)