mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 17:26:03 +03:00
8 lines
193 B
Bash
8 lines
193 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
SWAGGER_FILE="docs/api/swagger.yaml"
|
||
|
GTS_VERSION="$(cat version)"
|
||
|
|
||
|
swagger generate spec -o "${SWAGGER_FILE}" --scan-models
|
||
|
sed -i "s/REPLACE_ME/${GTS_VERSION}/" "${SWAGGER_FILE}"
|