Command-line validator for a single URPX JSON-LD file.
Complements, rather than replaces, the corpus gate that lives in the urpx-rate-plans repo: that one walks a fixed tree, takes no path argument, and is named for a single URPX version. This checks any one file, which is what a per-wave conversion smoke test needs while a corpus migrates utility by utility and carries two vocabularies at once.
clojure -M:validate path/to/filing.jsonld [more.jsonld ...]
Exit codes are tri-state, so a run that checked nothing cannot read as success:
0 every entity in every file coerced and validated
1 at least one entity failed validation
2 refused: a path was unreadable, or a file yielded no typed entity
Wrappers are descended, so a urpx:URPXDocument or urpx:URPXPackage is checked through to the urpx:RatePlan inside it rather than at the wrapper metadata alone.
Command-line validator for a single URPX JSON-LD file.
Complements, rather than replaces, the corpus gate that lives in the
urpx-rate-plans repo: that one walks a fixed tree, takes no path argument,
and is named for a single URPX version. This checks any one file, which is
what a per-wave conversion smoke test needs while a corpus migrates utility
by utility and carries two vocabularies at once.
clojure -M:validate path/to/filing.jsonld [more.jsonld ...]
Exit codes are tri-state, so a run that checked nothing cannot read as
success:
0 every entity in every file coerced and validated
1 at least one entity failed validation
2 refused: a path was unreadable, or a file yielded no typed entity
Wrappers are descended, so a urpx:URPXDocument or urpx:URPXPackage is
checked through to the urpx:RatePlan inside it rather than at the wrapper
metadata alone.(-main & paths)(check-file path)Validate every entity in path that clj-urpx models. Returns
{:path :checked [{:type :id :error}] :skipped [types]}.
Entities of unmodeled types are reported as skipped rather than silently ignored, so a file that yields nothing recognizable is visible as such.
Validate every entity in `path` that clj-urpx models. Returns
{:path :checked [{:type :id :error}] :skipped [types]}.
Entities of unmodeled types are reported as skipped rather than silently
ignored, so a file that yields nothing recognizable is visible as such.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |