Skip to content

Commit 79d8cf6

Browse files
authored
[Firebase AI] Fix JSON formatting issue in Schema unit tests (#14980)
1 parent 07ecf70 commit 79d8cf6

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

FirebaseAI/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Unreleased
22
- [fixed] Fixed `Sendable` warnings introduced in the Xcode 26 beta. (#14947)
3+
- [added] Added support for setting `title` in string, number and array `Schema`
4+
types. (#14971)
35

46
# 11.13.0
57
- [feature] Initial release of the Firebase AI Logic SDK (`FirebaseAI`). This

FirebaseAI/Tests/Unit/Types/SchemaTests.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ final class SchemaTests: XCTestCase {
6060
"description" : "\(description)",
6161
"format" : "date-time",
6262
"nullable" : true,
63-
"title": "\(title)",
63+
"title" : "\(title)",
6464
"type" : "STRING"
6565
}
6666
""")
@@ -114,7 +114,7 @@ final class SchemaTests: XCTestCase {
114114
],
115115
"format" : "enum",
116116
"nullable" : true,
117-
"title": "\(title)",
117+
"title" : "\(title)",
118118
"type" : "STRING"
119119
}
120120
""")
@@ -160,7 +160,7 @@ final class SchemaTests: XCTestCase {
160160
"maximum" : \(maximum),
161161
"minimum" : \(minimum),
162162
"nullable" : true,
163-
"title": "\(title)",
163+
"title" : "\(title)",
164164
"type" : "NUMBER"
165165
}
166166
""")
@@ -204,7 +204,7 @@ final class SchemaTests: XCTestCase {
204204
"maximum" : \(maximum),
205205
"minimum" : \(minimum),
206206
"nullable" : true,
207-
"title": "\(title)",
207+
"title" : "\(title)",
208208
"type" : "NUMBER"
209209
}
210210
""")
@@ -251,7 +251,7 @@ final class SchemaTests: XCTestCase {
251251
"maximum" : \(maximum),
252252
"minimum" : \(minimum),
253253
"nullable" : true,
254-
"title": "\(title)",
254+
"title" : "\(title)",
255255
"type" : "INTEGER"
256256
}
257257
""")
@@ -285,7 +285,7 @@ final class SchemaTests: XCTestCase {
285285
{
286286
"description" : "\(description)",
287287
"nullable" : true,
288-
"title": "\(title)",
288+
"title" : "\(title)",
289289
"type" : "BOOLEAN"
290290
}
291291
""")
@@ -341,7 +341,7 @@ final class SchemaTests: XCTestCase {
341341
"maxItems" : \(maxItems),
342342
"minItems" : \(minItems),
343343
"nullable" : true,
344-
"title": "\(title)",
344+
"title" : "\(title)",
345345
"type" : "ARRAY"
346346
}
347347
""")

0 commit comments

Comments
 (0)