From bad43b256f22ac9447497cbb94d03f0e1a34ff22 Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Mon, 23 Jun 2025 08:47:02 -0400 Subject: [PATCH] [Ai] Fix `anyOf` refdoc The sample code was not correctly enclosed in backticks (`), causing the code to be incorrectly rendered. --- .../src/main/kotlin/com/google/firebase/ai/type/Schema.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Schema.kt b/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Schema.kt index ca4466e75fe..5f2f6ca9350 100644 --- a/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Schema.kt +++ b/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Schema.kt @@ -309,15 +309,13 @@ internal constructor( * * Example: A field that can hold either a simple userID or a more detailed user object. * - * Schema.anyOf( listOf( Schema.integer(description = "User ID"), Schema.obj(mapOf( - * * ``` + * Schema.anyOf( listOf( Schema.integer(description = "User ID"), Schema.obj( mapOf( * "userID" to Schema.integer(description = "User ID"), * "username" to Schema.string(description = "Username") + * ))) * ``` * - * )) ) - * * @param schemas The list of valid schemas which could be here */ @JvmStatic