mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-05-18 13:24:15 +00:00
fix: download the schemas from signal-cli's fork
This commit is contained in:
parent
e68cabf88f
commit
82f7151212
@ -101,7 +101,7 @@ RUN cd /tmp/signal-cli-rest-api-src && ${GOPATH}/bin/swag init --requiredByDefau
|
|||||||
|
|
||||||
# manually add the json schemas for the receive V1 endpoint to the docs
|
# manually add the json schemas for the receive V1 endpoint to the docs
|
||||||
RUN cd /tmp/signal-cli-rest-api-src/docs \
|
RUN cd /tmp/signal-cli-rest-api-src/docs \
|
||||||
wget https://github.com/AsamK/signal-cli/releases/download/v${SIGNAL_CLI_VERSION}/signal-cli-${SIGNAL_CLI_VERSION}-json-schemas.tar.gz \
|
&& wget https://github.com/Gara-Dorta/signal-cli/releases/download/v${SIGNAL_CLI_VERSION}/signal-cli-${SIGNAL_CLI_VERSION}-json-schemas.tar.gz \
|
||||||
&& mkdir signal-cli-schemas \
|
&& mkdir signal-cli-schemas \
|
||||||
&& tar xf signal-cli-${SIGNAL_CLI_VERSION}-json-schemas.tar.gz -C signal-cli-schemas \
|
&& tar xf signal-cli-${SIGNAL_CLI_VERSION}-json-schemas.tar.gz -C signal-cli-schemas \
|
||||||
&& go run add_v1_receive_schemas.go signal-cli-schemas
|
&& go run add_v1_receive_schemas.go signal-cli-schemas
|
||||||
|
|||||||
@ -44,7 +44,10 @@ Install [go](https://go.dev/).
|
|||||||
```bash
|
```bash
|
||||||
cd docs
|
cd docs
|
||||||
```
|
```
|
||||||
1. Run the script to add the receive V1 schemas from https://github.com/AsamK/signal-cli#json-schemas-for-the-json-rpc-mode
|
1. Add the signal-cli receive V1 schemas
|
||||||
|
* Download the `signal-cli-x.y.z-json-schemas.tar.gz` schema files from https://github.com/Gara-Dorta/signal-cli/releases
|
||||||
|
* Extract the files
|
||||||
|
* Run the script to add the schemas
|
||||||
```bash
|
```bash
|
||||||
go run add_v1_receive_schemas.go ./path-to-signal-cli-json-schema-folder
|
go run add_v1_receive_schemas.go ./path-to-signal-cli-json-schema-folder
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user