How to break swagger 2.0 JSON file into multiple modules

后端 未结 8 830
半阙折子戏
半阙折子戏 2020-12-04 09:41

I\'m trying to break my API document up into multiple JSON files that can be edited independently. All the examples I\'ve been able to find use the Swagger 1.2 schema which

8条回答
  •  青春惊慌失措
    2020-12-04 10:18

    Note that RepreZen API Studio now supports multi-file Swagger/Open API projects via the $ref syntax discussed here. So you can break up large Swagger projects into modules to enable re-use and team collaboration. You can then use the built-in Swagger normalizer to create a single, consolidated Swagger file when you need to take your API model outiside the design/development environment.

    Note: in the interests of full disclosure, I am Product Manager at RepreZen. I stumbled across this thread last week and thought I'd chip in.

提交回复
热议问题