Skip to contents

Structurally validates a rubric YAML (or JSON) file against the bundled JSON Schema (inst/schema/markermd-rubric.json). This is an optional check aimed at tooling and LLM-generated files; the authoritative validation happens via the S7 constructors in read_rubric_yaml(). Requires the suggested jsonvalidate package.

Usage

validate_rubric_file(path)

Arguments

path

Path to a rubric .yaml/.yml/.json file.

Value

TRUE when the file conforms to the schema, otherwise FALSE with the validation errors attached as attributes (see jsonvalidate::json_validate()).