diff --git a/Dockerfile b/Dockerfile index b27f64f..e9e2420 100644 --- a/Dockerfile +++ b/Dockerfile @@ -148,7 +148,7 @@ COPY src/docs/add_v1_receive_schemas.go /tmp/signal-cli-rest-api-src/docs/add_v1 RUN ls -la /tmp/signal-cli-rest-api-src # build the docs -RUN cd /tmp/signal-cli-rest-api-src && ${GOPATH}/bin/swag init --requiredByDefault --outputTypes go +RUN cd /tmp/signal-cli-rest-api-src && ${GOPATH}/bin/swag init --requiredByDefault --outputTypes "go,json" # manually add the json schemas for the receive V1 endpoint to the docs RUN if [ "$(uname -m)" = "x86_64" ]; then \ diff --git a/src/docs/README.md b/src/docs/README.md index 20d1b0d..92d8ba5 100644 --- a/src/docs/README.md +++ b/src/docs/README.md @@ -15,11 +15,11 @@ Regenerate the files with your local source code changes. 1. Run swag to generate the docs * Option 1, via docker ```bash - docker run --rm -v $(pwd):/code ghcr.io/swaggo/swag:latest init --requiredByDefault --outputTypes go + docker run --rm -v $(pwd):/code ghcr.io/swaggo/swag:latest init --requiredByDefault --outputTypes "go,json" ``` * Option 2, install swag and run the command line tool ```bash - swag init --requiredByDefault --outputTypes go + swag init --requiredByDefault --outputTypes "go,json" ``` 1. Set the current working dir to `src/docs` ```bash