Importing an OpenAPI specification file in Mockoon can be a good starting point to create a mock from your API definition. And exporting your mock to an OpenAPI specification file is also a way to start an API definition. However, there is currently no equivalent between all the OpenAPI specifications and Mockoon's features:
Importing from or exporting to an OpenAPI specification file is a good starting point but not a way to share your mock APIs created with Mockoon. For sharing, we recommend that you directly share Mockoon's data files.
Also, if you want to run your mock API with the CLI, you must use Mockoon's data files directly, or you may lose part of your mock's behavior.
OpenAPI import and export currently support the following API information:
/:param), methods, responses with status code (200, etc.), headers, and descriptions.
Import only: sample JSON bodies are created from OpenAPI schemas during import.