DependOnSchema¶
class DependOnSchema(val schema: Schema<*>, factory: BsonFactory) : Schema.Dependencies.DependencyConstraints
To be valid, a property requires, when it is present, that the object confirms to additional constraints.
For example, if a property "send_email_notifications" depends on a schema that says a field "email" must be a string, validation fails if the "send_email_notifications" is present but "email" is not a string.
This relationship is monodirectional: if "send_email_notifications" is not present, then "email" is allowed to be absent or any other kind of value.
Constructors¶
DependOnSchema¶
constructor(schema: Schema<*>, factory: BsonFactory)
Properties¶
schema¶
Functions¶
toString¶
writeTo¶
@LowLevelApi
open override fun writeTo(writer: BsonValueWriter)
Writes this object to the provided writer.