check_property {stencilaschema}R Documentation

Check that a value is present if required and conforms to the specified type for a property.

Description

Check that a value is present if required and conforms to the specified type for a property.

Usage

check_property(type_name, property_name, is_required, is_missing, type, value)

Arguments

type_name

The name of the type that they property is on

property_name

The name of the property

is_required

Is a value for the property required?

is_missing

Is a value for the property missing?

type

The type to check against

value

The value to check

Value

The value, if it is valid, nothing otherwise


[Package stencilaschema version 1.0.0 Index]