accepts

fun Type.accepts(v: Value, schema: Schema): Boolean

Convenience method to check a value against a type, ignoring the specifications of mismatches.


infix fun Type.accepts(v: Value): Boolean

Convenience method to check a value against a type with no named declarations, ignoring the specifications of mismatches.