fix: remove swagger.json and swagger.yaml files

This commit is contained in:
Era Dorta 2026-05-04 13:36:25 +01:00
parent 2ac55eec07
commit eda99213a7
4 changed files with 3 additions and 6431 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
RUN cd /tmp/signal-cli-rest-api-src && ${GOPATH}/bin/swag init --requiredByDefault --outputTypes go
# 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
docker run --rm -v $(pwd):/code ghcr.io/swaggo/swag:latest init --requiredByDefault --outputTypes go
```
* Option 2, install swag and run the command line tool
```bash
swag init --requiredByDefault
swag init --requiredByDefault --outputTypes go
```
1. Set the current working dir to `src/docs`
```bash

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff