2021-07-31 16:49:59 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-09-10 17:13:24 +01:00
|
|
|
set -eu
|
|
|
|
|
2021-07-31 16:49:59 +01:00
|
|
|
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}"
|