How do I combine multiple OpenAPI 3 specification files together?

后端 未结 3 857
难免孤独
难免孤独 2020-12-31 10:37

I want to combine an API specification written using the OpenAPI 3 spec, that is currently divided into multiple files that reference each other using $ref. How

3条回答
  •  迷失自我
    2020-12-31 11:02

    One way to do this is to use the open-source project speccy.

    Open the terminal and install speccy by running (requires Node.js):

    npm install speccy -g

    Then run:

    speccy resolve path/to/spec.yaml -o spec-output.yaml

提交回复
热议问题