NullableSchema
org.llm4s.toolapi.NullableSchema
case class NullableSchema[T](underlying: SchemaDefinition[T]) extends SchemaDefinition[Option[T]]
Nullable schema wrapper that widens an existing schema to also accept null.
Emits "type": ["<original>", "null"] in the JSON Schema output.
Value parameters
- underlying
-
The non-nullable schema to wrap
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article