Validate Reactive Resume v5 JSON against the upstream schema. Ship it as a library or run it from the terminal.
npx rx-ruler validate resume.jsonCLI (no install needed):
npx rx-ruler validate resume.jsonLibrary:
npm i rx-rulerrx-ruler validate <input>
| Flag | Description |
|---|---|
--json-errors |
Output a single JSON object to stdout instead of human-readable format |
--quiet |
Suppress the success message in human mode |
-h, --help |
Show help |
-v, --version |
Show version |
<input> is a file path or - for stdin.
| Code | Meaning |
|---|---|
| 0 | Valid |
| 1 | Schema-invalid |
| 2 | I/O error or parse failure |
import { validate } from "rx-ruler";
const result = validate(data);
if (result.ok) {
console.log(result.data); // typed as ResumeV5
} else {
console.error(result.errors); // ValidationError[]
}The validate function never throws. It always returns a discriminated union: { ok: true, data } or { ok: false, errors }.
Reactive Resume v5 JSON, against the upstream schema vendored from AmruthPillai/Reactive-Resume at tag v5.1.4 (commit 9df2a52).
The vendored schema lives at src/schema/v5/upstream/ and is frozen — never fetched at runtime.
None. Ever.
MIT. The vendored Reactive Resume schema retains its own MIT attribution at src/schema/v5/UPSTREAM-LICENSE.