validateSchema

fun validateSchema(documentJson: String): SchemaError?

Validates a JoyDoc document against the JSON schema

Return

SchemaError if validation fails, null if validation passes

Parameters

documentJson

The JoyDoc document to validate


fun validateSchema(documentJsonObject: JsonObject): SchemaError?

Validates a JoyDoc document against the JSON schema, this function has less of memory footprint than validateSchema with String

Return

SchemaError if validation fails, null if validation passes

Parameters

documentJsonObject

The JoyDoc document to validate