Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

samsung-cnct/jsonsvalidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Schema Validator

Description

jsonsvalidator performs JSON schema validation using a specified schema and an arbitrary config (YAML or JSON) file.

Synopsis

./jsonsvalidator validate --schema /path/to/schema.json --config /path/to/config.yaml

Gotchas

  1. The /path/to/schema must be a fully qualified path.
  2. Currently, the validator does not handle remote schemas, yet.
  3. According to the author's observations, the library which does the actual validation ignores $refs during validation if a schema file is used for validation. Currently, this application only recognizes validation by local schema file.

Build process

$ make all

TODO

  1. Update so that remote schemas IE URLs can be used for validation.

Non-standard Dependencies

gojsonschema library (spec 4)

YAML validation library

Cobra

Cobra POSIX Flags library

Semantic Version Library (spec ver. 2.0.0 compliant)

Maintainer Versioning

This may change IE it's experimental. In order to bump the version on this app one must tag a commit to the version one wants:

  1. git commit -am 'some message here'
  2. git tag x.x.x-foo OR some other valid semantic in conformance with semver 2.0.0 (semver.org)
  3. The build will automatically add the build date, hash, and other details into the binary so app version reflects the proper information