validate

fun validate(content: String): List<String>

Validates the given content against all the validation rules.

Return

A list of error messages, or an empty list if the content is valid.

Parameters

content

The content to validate.