level_checks {eplusr}R Documentation

Show components of validation strictness level

Description

level_checks() takes input of a built in validation level or a custom validation level and returns a list with all validation components that level contains.

Usage

level_checks(level = eplusr_option("validate_level"))

Arguments

level

Should be one of "none", "draft", "final" or an output of custom_validate().

Value

A named list with 10 elements, e.g. required_object, unique_object, unique_name, extensible, required_field, auto_field, type, choice, range and reference. For the meaning of each validation component, seecustom_validate().

Examples

level_checks("draft")
level_checks("final")
level_checks(custom_validate(auto_field = TRUE))
level_checks(eplusr_option("validate_level"))

[Package eplusr version 0.15.1 Index]