All Projects → neilpa → yajsv

neilpa / yajsv

Licence: MIT License
Yet Another JSON Schema Validator [CLI]

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to yajsv

Datamodel Code Generator
Pydantic model generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.
Stars: ✭ 393 (+835.71%)
Mutual labels:  yaml, json-schema
Json Schema Validator
A fast Java JSON schema validator that supports draft V4, V6, V7 and V2019-09
Stars: ✭ 292 (+595.24%)
Mutual labels:  yaml, json-schema
ty
Here is a schema checker which can return well typed results. Tell your friends!
Stars: ✭ 21 (-50%)
Mutual labels:  json-schema
CoreFormatters
.NET Core Custom Formatter for Yaml
Stars: ✭ 21 (-50%)
Mutual labels:  yaml
openapiclientgen
Generate C# and TypeScript client codes from Open API / Swagger definitions
Stars: ✭ 31 (-26.19%)
Mutual labels:  yaml
Obsidian-Markdown-Parser
This repository will give you tools to parse and fetch useful informations of your notes in your Obsidian vault.
Stars: ✭ 32 (-23.81%)
Mutual labels:  yaml
counsel-jq
Traverse complex JSON and YAML structures with live feedback
Stars: ✭ 99 (+135.71%)
Mutual labels:  yaml
dby
Simple Yaml DB
Stars: ✭ 47 (+11.9%)
Mutual labels:  yaml
online-resume
A Jekyll theme for resume / cv based on Markdown. Demo: https://tarrex.github.io/online-resume
Stars: ✭ 27 (-35.71%)
Mutual labels:  yaml
python-yamlordereddictloader
(DEPRECATED) YAML loader and dumper for PyYAML allowing to keep keys order.
Stars: ✭ 25 (-40.48%)
Mutual labels:  yaml
website
Prometheus monitoring mixins
Stars: ✭ 91 (+116.67%)
Mutual labels:  yaml
angular-json-editor
An angular wrapper for jdorn/json-editor
Stars: ✭ 93 (+121.43%)
Mutual labels:  json-schema
pyaml env
Parse YAML configuration with environment variables in Python
Stars: ✭ 36 (-14.29%)
Mutual labels:  yaml
yaml-front-matter
A to the point yaml front matter parser
Stars: ✭ 200 (+376.19%)
Mutual labels:  yaml
crystalizer
(De)serialize any Crystal object - out of the box. Supports JSON, YAML and Byte format.
Stars: ✭ 32 (-23.81%)
Mutual labels:  yaml
doo
简单易用的接口管理解决方案,支持接口文档管理、Mock服务,接口测试等功能。接口文档采用 yaml 或 Excel 格式书写,简单快捷,Mock 基于该文档,无需数据库,一条命令秒变 Mock 服务。
Stars: ✭ 36 (-14.29%)
Mutual labels:  yaml
gsheet to arb
Import translations (ARB/Dart) from Google Sheets
Stars: ✭ 21 (-50%)
Mutual labels:  yaml
JBOL
JBOL is a collection of modules for the JQ language.
Stars: ✭ 56 (+33.33%)
Mutual labels:  json-schema
yamlful
YAML-based HTTP client code generation
Stars: ✭ 77 (+83.33%)
Mutual labels:  yaml
spec
Spezifikation für eine offene Schnittstelle für Ratsinformationssysteme
Stars: ✭ 56 (+33.33%)
Mutual labels:  json-schema

yajsv

CI

Yet Another JSON-Schema Validator. Command line tool for validating JSON and/or YAML documents against provided schemas.

The real credit goes to xeipuuv/gojsonschema which does the heavy lifting behind this CLI.

Installation

Simply use go get to install

go get neilpa.me/yajsv

There are also pre-built static binaries for Windows, Mac and Linux on the releases tab.

Usage

Yajsv validates JSON (and/or YAML) documents against a JSON-Schema, providing a status per document:

  • pass: Document is valid relative to the schema
  • fail: Document is invalid relative to the schema
  • error: Document is malformed, e.g. not valid JSON or YAML

The 'fail' status may be reported multiple times per-document, once for each schema validation failure.

Basic usage example

$ yajsv -s schema.json document.json
document.json: pass

Or with both schema and doc in YAML.

$ yajsv -s schema.yml document.yml
document.yml: pass

With multiple schema files and docs

$ yajsv -s schema.json -r foo.json -r bar.yaml doc1.json doc2.yaml
doc1.json: pass
doc2.json: pass

Or with file globs (note the quotes to side-step shell expansion)

$ yajsv -s main.schema.json -r '*.schema.json' 'docs/*.json'
docs/a.json: pass
docs/b.json: fail: Validation failure message
...

Note that each referenced schema is assumed to be a path on the local filesystem. These are not URI references to either local or external files.

See yajsv -h for more details

Licence

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].