cancel
Showing results for 
Search instead for 
Did you mean: 

Swagger editor and OpenApi 3.0

SOLVED
Highlighted
Occasional Visitor

Swagger editor and OpenApi 3.0

I've installed Swagger editor locally due to guide https://medium.com/@mukulkatal/using-swagger-for-node-js-apis-d67e7b9f32a6
When i tried to run "npm run swagger:edit" swagger editor opens at http://127.0.0.1:55346/#!/ and everything is ok in version of openapi 2.0. But when i tried to use openapi 3.0 syntax i see the following errors in swagger editor(attched screenshot or http://prntscr.com/t8zfcy). How to use Open api 3.0 syntax locally? https://editor.swagger.io/ here it works

 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator

Re: Swagger editor and OpenApi 3.0

That's an old version of Swagger Editor.

 

To run the latest Swagger Editor locally, use one of these options:

1) Clone the repository

git clone https://github.com/swagger-api/swagger-editor.git

then

npm start

This will start the editor on http://127.0.0.1:3001.

 

2) Run the Docker image:

https://github.com/swagger-api/swagger-editor/#running-the-image-from-dockerhub

 

3) Download the static assets (index.html and the dist folder) from the repository:

https://github.com/swagger-api/swagger-editor

Then open the index.html page in a browser, or put the assets onto a web server and load the page from there.


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

1 REPLY 1
Highlighted
Moderator

Re: Swagger editor and OpenApi 3.0

That's an old version of Swagger Editor.

 

To run the latest Swagger Editor locally, use one of these options:

1) Clone the repository

git clone https://github.com/swagger-api/swagger-editor.git

then

npm start

This will start the editor on http://127.0.0.1:3001.

 

2) Run the Docker image:

https://github.com/swagger-api/swagger-editor/#running-the-image-from-dockerhub

 

3) Download the static assets (index.html and the dist folder) from the repository:

https://github.com/swagger-api/swagger-editor

Then open the index.html page in a browser, or put the assets onto a web server and load the page from there.


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors