json-dereference-cli

0.1.2 • Public • Published

JSON Dereference CLI

Very simple CLI tool that wraps the excellent json-schema-ref-parser library.

Usage

npm install -g json-dereference-cli
json-dereference -s my-schema.json -o compiled-schema.yaml

Note: The input file can either be json, or yaml / yml.

Note: The output file types are either json or yaml / yml. This is determined from the file extension for the output file path passed in.

$ref: "s3://.."

This CLI tool will also attempt to resolve S3 references using the aws-sdk. Take a look here to see the custom resolver code.

Package Sidebar

Install

npm i json-dereference-cli

Weekly Downloads

78

Version

0.1.2

License

none

Last publish

Collaborators

  • davidkelley