Closed cebe closed 3 years ago
Is there any way that this can be achieved in the current released version? If so, could you please point in the right direction?
It will be possible with release of version 1.5, on master you can use $resolveReferences parameter of readFromJsonFile()
and readFromYamlFile()
:
[x] should be implemented in the command line tool:
[x] docs need to be added to the README
1.5.0 is going to be released today.
Currently resolving references resolves all references unless they are recursive.
There should be more options to support cases where only external references should be inlined. See also: https://stoplight.io/blog/keeping-openapi-dry-and-portable/