OneOf¶
class OneOf<T>(val schemas: List<Schema<T>>, factory: BsonFactory) : Schema.SimpleConstraint<T>
The value must confirm to exactly one of the given schemas.
Constructors¶
OneOf¶
constructor(schemas: List<Schema<T>>, factory: BsonFactory)
Properties¶
name¶
schemas¶
Functions¶
toString¶
writeTo¶
override fun writeTo(writer: BsonFieldWriter)
Writes this object to the provided writer.