Resolving yaml refs CLI tool.
This tool is still under development, so please use it as an alpha version.
So I won't be uploading it to npm and such for now.
$ git clone https://github.com/nao50/ryr.git && cd ryr
$ npm install
$ npm link
$ ryr --help
USAGE
$ ryr INPUTFILE
ARGUMENTS
INPUTFILE The YAML file you're trying to solve
OPTIONS
-h, --help show CLI help
-v, --version show CLI version
-o, --outputFile [default: resolved] output file name
-f, --outputFormat output file format
$ ryr ./example/index.yaml --outputFormat yaml
openapi: 3.0.0
info:
version: 0.0.0
title: Example YAML file
paths:
/path1:
get:
responses:
'200':
description: OK
schema:
type: object
properties:
name:
type: string
/path2:
get:
responses:
'200':
description: OK
schema:
type: object
properties:
name:
type: string
https://github.com/oclif/oclif
https://github.com/nodeca/js-yaml
https://github.com/whitlockjc/json-refs