Closed fornwall closed 4 years ago
Tests are failing due to meeshkan-examples containing an example without a specs. I can fix that example to add a spec, if we agree that we don't need to support running a mock without any spec.
We could maybe consider making examples repo a git submodule to simplify changing both repos at the same time?
Replaced by #154.
Using the command as
meeshkan mock --specs spec_file.yaml
is probably more natural and less to remember, especially as most people will probably (at least start with) mocking only one OpenAPI specification file.We still support the
--specs
option to point at a directory just as before as well.We also start validating the argument, so in the case of a non-existing specs, we show a descriptive error message instead of starting a mock server without any mocks:
Ideally I think we should have have
meeshkan mock spec_file.yaml
without any options, but the daemon argument handling currently complicates that, so this is a start.