validate_bds_individual: Validate JSON file

Description Usage Arguments Value Author(s)

View source: R/validate_bds_individual.R

Description

This function takes data from a JSON source and compares it to a JSON schema object. A boolean is returned indicating whether or not the provided JSON data matches the schema.

Usage

1
validate_bds_individual(txt = NULL, schema = NULL, verbose = TRUE)

Arguments

txt

A JSON string, URL or file to be compared to the schema.

schema

The name of one the the built-in schema's. The default (NULL) loads "bds_schema_str.json".

verbose

include an error message when validation fails.

Value

A boolean with optional errors attribute.

Author(s)

Arjan Huizing 2019


stefvanbuuren/minihealth documentation built on March 11, 2021, 7:10 p.m.