Skip to content

Commit 087c34a

Browse files
author
David Motsonashvili
committed
remove unneeded type heirarchy and update schema reference
1 parent 67e413d commit 087c34a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -412,14 +412,12 @@ internal constructor(
412412
)
413413
}
414414

415-
@Serializable internal sealed interface Internal
416-
417415
@Serializable
418416
internal data class InternalOpenAPI(
419417
val type: String? = null,
420418
val description: String? = null,
421419
val format: String? = null,
422-
val nullable: Boolean? = false,
420+
val nullable: Boolean? = fals"e,
423421
val enum: List<String>? = null,
424422
val properties: Map<String, InternalOpenAPI>? = null,
425423
val required: List<String>? = null,
@@ -430,9 +428,9 @@ internal constructor(
430428
val minimum: Double? = null,
431429
val maximum: Double? = null,
432430
val anyOf: List<InternalOpenAPI>? = null,
433-
) : Internal
431+
)
434432
435-
@Serializable internal sealed interface InternalJson : Internal
433+
@Serializable internal sealed interface InternalJson
436434
437435
@Serializable
438436
internal data class InternalJsonNonNull(

firebase-ai/update_responses.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# This script replaces mock response files for Vertex AI unit tests with a fresh
1818
# clone of the shared repository of Vertex AI test data.
1919

20-
RESPONSES_VERSION='v14.*' # The major version of mock responses to use
20+
RESPONSES_VERSION='v15.*' # The major version of mock responses to use
2121
REPO_NAME="vertexai-sdk-test-data"
2222
REPO_LINK="https://github.com/FirebaseExtended/$REPO_NAME.git"
2323

0 commit comments

Comments
 (0)