Learn R Programming

DCC (version 1.2.1)

dcc_validate_json: Validate DCC JSON and JSON Lines artifacts

Description

Uses DCC's built-in structural validator, avoiding an additional runtime dependency. Published schema files remain compatible with full external JSON Schema validators.

Usage

dcc_validate_json(path, schema)

dcc_validate_jsonl(path, schema)

Value

TRUE when the artifact matches the published contract.

Arguments

path

Existing JSON or JSON Lines file.

schema

A schema name accepted by dcc_schema().