check

fun Type.check(v: Value, schema: Schema): List<Mismatch>

Check a value against a type, resolving any Type.Ref through schema.

Decimals are checked strictly (rounding and overflow are ignored).


infix fun Type.check(v: Value): List<Mismatch>

Check a value against a type with no named declarations to resolve against.