-
Hi. When I use mockoon cli directly, or I mount YAML file into existing mockoon image, everything works. When I put YAML file into image itself, it fails with following message: Few comments: mockoon-cli is of version 5.0.0 (but same behavior I had on version 3. When I put the file into docker image using following Dockerfile
The error above occurs. Even if I jump into image: And I run command manually from there, the result is same.
I run it on Mac with M1 Pro (I guess, this it not an issue, but anyway mentioning it here). Any hint, help, idea? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, Could you please share the file you are trying to run? I just tried with a similar setup, and a basic Mockoon data file and it worked. So, I suspect something is wrong with your file. Thank you |
Beta Was this translation helpful? Give feedback.
-
After analyzing the file you sent me, could it be possible that you forgot to The CLI is testing first if it's an OpenAPI spec file, if not it will try to parse as JSON. There is no error reporting on the first step. I will improve that for the next release. |
Beta Was this translation helpful? Give feedback.
After analyzing the file you sent me, could it be possible that you forgot to
COPY
the files that are referenced in your specification: $ref: "./file-name.openapi.yaml", etc. ?The CLI is testing first if it's an OpenAPI spec file, if not it will try to parse as JSON. There is no error reporting on the first step. I will improve that for the next release.