mockoon icon indicating copy to clipboard operation
mockoon copied to clipboard

Ability to export to OpenApi V3 Using the CLI

Open roybarber opened this issue 4 years ago • 2 comments

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)

roybarber avatar Apr 06 '22 15:04 roybarber

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?

Mavbraz avatar Jul 22 '22 23:07 Mavbraz

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

255kb avatar Jul 23 '22 11:07 255kb

📦 This is now released in v6.0.0.

255kb avatar Nov 29 '23 14:11 255kb

Amazing @255kb Absolute legend!

roybarber avatar Nov 29 '23 17:11 roybarber

@roybarber You must thank @Mavbraz 😊

255kb avatar Nov 29 '23 18:11 255kb