Add back json generation

This commit is contained in:
Era Dorta 2026-05-04 13:44:20 +01:00
parent 6fa06f9611
commit 948a522ad8
2 changed files with 3 additions and 3 deletions

View File

@ -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 \

View File

@ -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