Resolve Refs
This command takes a JSON or YAML document and resolves and replaces all external JSONRefs.
Usage
The resolve-refs command takes two parameters -input and -output
-
--inputis the document to transform (either as JSON or YAML) -
--outputis the document to be created (either as JSON or YAML) -
--outputfull path is created if it does not exist (likemkdir -p) -
--allow-cyclesexternal cyclic JSONRefs are replaced with empty placeholders{}
You may omit the
--inputor--outputflags to read or write from stdin or stdout
Note
Only JSONRefs pointing to external documents are replaced. If a JSONRef points back within the same document, it is left unchanged.