canParse

fun canParse(value: String, type: SchemaType): Boolean

Checks whether a string value can be parsed as the given SchemaType.

Return

true if the value can be parsed as the given type, false otherwise

Parameters

value

The raw string value to check

type

The expected schema type