Types

Link copied to clipboard
data class ArrayRule(val path: String, val type: String = TYPE, val items: List<Rule.ArrayRule.Item>) : Rule
Link copied to clipboard
data class EnumRule(val path: String, val type: String = TYPE, val values: List<Any>) : Rule
Link copied to clipboard
data class ObjectRule(val path: String, val type: String = TYPE, val properties: List<String>, val optional: List<String>) : Rule
Link copied to clipboard
data class PrimitiveRule(val path: String, val type: String) : Rule
Link copied to clipboard
data class TreeNodeRule(val nodeType: String, val content: String? = null, val marks: String? = null, val group: String? = null)

Represents a single tree node rule used to validate the structure of a dev.yorkie.document.crdt.CrdtTree against the schema. Mirrors the TreeNodeRule type from the yorkie-js-sdk schema package.

Link copied to clipboard
data class UnionRule(val path: String, val type: String = TYPE) : Rule
Link copied to clipboard
data class YorkieTypeRule(val path: String, val type: String, val treeNodes: List<Rule.TreeNodeRule>? = null) : Rule

Properties

Link copied to clipboard
abstract val path: String
Link copied to clipboard
abstract val type: String