Skip to content
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

Ability to export to OpenApi V3 Using the CLI #678

Closed
roybarber opened this issue Apr 6, 2022 · 5 comments · Fixed by #772
Closed

Ability to export to OpenApi V3 Using the CLI #678

roybarber opened this issue Apr 6, 2022 · 5 comments · Fixed by #772
Assignees
Labels
App: CLI Issue is for the CLI feature New feature request

Comments

@roybarber
Copy link
Contributor

roybarber commented Apr 6, 2022

Is your feature request related to a problem? Please describe.
I cant export my environment to OpenApi V3 (Json) using the CLI

Describe the solution you'd like
When using the CLI, i'd like the ability to export my environment to OpenApi v3 (JSON), like i can do using the Mockoon UI

Describe alternatives you've considered
Only option currently is using the Mockoon UI (App)

@255kb 255kb added App: CLI Issue is for the CLI feature New feature request labels Apr 21, 2022
@Mavbraz
Copy link
Contributor

Mavbraz commented Jul 22, 2022

Hey, @255kb.

I have a few thoughts to say about what could generate more outcome for users:

  • It makes more sense to export to OpenApi v3 (JSON) just passing a data file and output a json than to export an environment that is running
  • As it's being developed to export to OpenApi v3 (JSON), the import function can also be implemented for Swagger v2/OpenApi v3 (JSON or YALM) and will generate a json with the environment that can be used in Mockoon

I'd like to contribute by developing this task. Could I be assigned to this one?

@255kb
Copy link
Member

255kb commented Jul 23, 2022

@Mavbraz Sure, I assigned the task to you. Let's discuss the details on Discord!

Mavbraz added a commit to Mavbraz/mockoon that referenced this issue Jul 27, 2022
Mavbraz added a commit to Mavbraz/mockoon that referenced this issue Jul 27, 2022
Mavbraz added a commit to Mavbraz/mockoon that referenced this issue Sep 11, 2023
Mavbraz added a commit to Mavbraz/mockoon that referenced this issue Nov 20, 2023
Mavbraz added a commit to Mavbraz/mockoon that referenced this issue Nov 20, 2023
255kb pushed a commit that referenced this issue Nov 20, 2023
* Import and export using CLI

Closes #678

* Adapt to new release changes

* PR suggestions

* Create unit tests

* Remove legacy tests

* Update expected output for import test

* Include commands in the README
@255kb
Copy link
Member

255kb commented Nov 29, 2023

📦 This is now released in v6.0.0.

@roybarber
Copy link
Contributor Author

Amazing @255kb Absolute legend!

@255kb
Copy link
Member

255kb commented Nov 29, 2023

@roybarber You must thank @Mavbraz 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App: CLI Issue is for the CLI feature New feature request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants