Simple utils to work with OpenAPI files
Takes input .yaml file and follows references to inline everything in a single output .yaml file Tool can resolve local refs (refs pointing to objects in the same file) and remote refs (refs pointing to object in other files)
- to build executables (linux & windows) run from project root
./scripts/build_cmd.sh - to build shared library (linux only atm) run from project root
./scripts/build_lib.sh
help- helpinput-file- path to input file that has refs that need to be resolved. When not provided, stdin is usedoutput-file- path to output file to which input file with resolved refs should be saved. When not provided, stdout is usedref-directory- path to directory where files containing remote refs are stored. When not provided a directory of input-file is usedinline-local- (default:false) when set totruelocal refs are replaced with local objects, otherwise local refs stay in placeinline-remote- (default:false) when set totrueremote refs are replaced with remote objects, otherwise remote refs stay in placekeep-local- (default:false) when set totruealong withinline-localkeeps local reference objects after inlining, otherwise deletes them. When set totruewithinline-localset to false does nothing to prevent from making dangling local references, and therefore creating incorrect specifications