-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add import/export for Swagger / OpenAPI format #86
Comments
This issue mentions both Swagger and OpenAPI. Is that Swagger v2 and OpenAPI v3? Or one or the other? |
Yes, Swagger format (Swagger 2.0) is now OpenAPI v3. (Source: https://swagger.io/docs/specification/about/) They are basically two versions of the same thing, a little bit different but not too much. So creating one parser for both should not be that complicated (it's already WIP). |
@255kb : When is swagger import expected to be released? |
@aakash1313 I started working on it, but I have very limited time at the moment to work on Mockoon, so don't expect this feature before several weeks / months |
+1 |
+1 |
Exporting a mock to OpenApi will be a great feature too. |
@gervaisb I wanted to ask this exact question! I am currently working on this, import is already well advanced (multiple route support, headers, etc only thing is to generate mock data based on the objects references in the openapi file). But I wondered if export would make sense as we may not generate something as rich as an regular OpenAPI file. |
I can easily imagine that someone will use mockoon to draw the API. When the state is tested and approved by other it generate the spec and give it as base document for others that complete it with the details. |
@gervaisb that's true, it would definitely be useful. |
Any update on this? |
@fsalata I finished the import part, I must now write the tests and the export (which will be quicker). But I have limited time to work on Mockoon (it's a side project), and reviewing contributions, answering messages, etc is already taking a lot of time! |
I just found this project and just wanted to say how nice it is! |
@mackelito thanks for the kind words! 😄 |
Implement feature to import/export JSON or YAML files in Swagger / OpenAPI format.
Both v2.0 and 3.0 of the format will be supported.
(OpenAPI format was chosen after a poll in #38)
The text was updated successfully, but these errors were encountered: