Skip to content

Commit df2f067

Browse files
author
David Motsonashvili
committed
make anyOf name more consistent
1 parent e105a8c commit df2f067

File tree

1 file changed

+2
-2
lines changed
  • firebase-ai/src/main/kotlin/com/google/firebase/ai/type

1 file changed

+2
-2
lines changed

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Schema.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,12 @@ internal constructor(
321321
* @param schemas The list of valid schemas which could be here
322322
*/
323323
@JvmStatic
324-
public fun anyOf(schemas: List<Schema>): Schema = Schema(type = "anyOf", anyOf = schemas)
324+
public fun anyOf(schemas: List<Schema>): Schema = Schema(type = "ANYOF", anyOf = schemas)
325325
}
326326

327327
internal fun toInternal(): Internal {
328328
val cleanedType =
329-
if (type == "anyOf") {
329+
if (type == "ANYOF") {
330330
null
331331
} else {
332332
type

0 commit comments

Comments
 (0)