You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml loads a file from a URL.
path/to/your/openapi-specification.yaml loads a file relative to working directory.
./path/to/your/openapi-specification.yaml loads a file relative to configuration file.
/path/to/your/openapi-specification.yaml loads a file by absolute path.
Correct Documentation for docker compose, if you want to load the OpenApi .yaml file from local
If you want to reference a local file in docker compose
you must first mount the host dir into container- ./swagger:/etc/swagger
Please note that this part of the documentation is wrong/incomplete (and I wasted 2hours trying to get it to work)
__
Correct Documentation for docker compose, if you want to load the OpenApi
.yaml
file from localIf you want to reference a local file in docker compose
- ./swagger:/etc/swagger
So it would help people if you can add in
docker-compose
documentation also an example with a.yaml
file from local machineThe text was updated successfully, but these errors were encountered: