- Download visual studio code from VS Code Download page
- Add OpenAPI (Swagger) Editor extention(navigate to extention from Activity Bar and search for OpenAPI (Swagger) Editor extention) for editing
- Install openapi-designer extention for compiled schema generation from multifile
- Once editor is installed you are ready to write your API documentation with Open API standards (3.X)
- You can use preview by selecting openapi.yaml file in root folder and use (shift + option + p)
- Also you can use preview button from openapi.yaml file in root folder which renders in Swagger UI by defauls
- Delete already generated openapi.json file
- Open the root of your schema (opeapi.yaml in root folder)
- For MacOS cmd-shft-p > type OpenApi Designer: Compile Schema and enter - Compiles a unified schema and dereferences all $refs into a single file
- This will generate resolved json of schema into one file
- Please check v3.0.0 Open API Docs to create new documentation
- Still working