nil
DDataParser.nil() only accepts null. Useful to explicitly describe fields that must be null or to combine with optional/nullable.
Interactive example
Parameters
errorMessage: custom message when the input is notnull.checkers:checkerRefineto add business logic.coerce:trueto convertundefined/"null"tonull. Defaults tofalse.
Return value
A DataParserNil. schema.parse(data) returns DEither.success<null> or DEither.error<DataParserError>.
