Skip to content

Commit ddd5b63

Browse files
authored
env cleanup
1 parent 52a1775 commit ddd5b63

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tools/postman/scripts/transform-for-api.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ set -euo pipefail
99
# OPENAPI_FILE_NAME - name of the openapi specification file
1010
# OPENAPI_FOLDER - folder where openapi file is saved
1111
# TMP_FOLDER - folder for temporary files during transformations
12-
# TOKEN_URL_ENV - client credentials auth path to set at the environment level, will not be set if unpopulated
13-
# TOGGLE_INCLUDE_BODY - bool for if generated bodies should be removed or kept
14-
# TOGGLE_ADD_DOCS_LINKS - updates requests with corresponding docs links
1512
# VERSION_FILE_NAME - name of the file where the current version is stored
1613
# DESCRIPTION_FILE - name for the markdown description file
14+
# TOGGLE_INCLUDE_BODY - bool for if generated bodies should be removed or kept
15+
# TOGGLE_ADD_DOCS_LINKS - updates requests with corresponding docs links
16+
# TOKEN_URL_ENV - client credentials auth path to set at the environment level, will not be set if unpopulated
1717
# BASE_URL - the default base url the Postman Collection will use
1818
#########################################################
1919

@@ -23,13 +23,12 @@ OPENAPI_FILE_NAME=${OPENAPI_FILE_NAME:-"atlas-api.json"}
2323
OPENAPI_FOLDER=${OPENAPI_FOLDER:-"../openapi"}
2424
TMP_FOLDER=${TMP_FOLDER:-"../tmp"}
2525
VERSION_FILE_NAME=${VERSION_FILE_NAME:-"version.txt"}
26+
DESCRIPTION_FILE=${DESCRIPTION_FILE:-"../collection-description.md"}
2627

27-
TOGGLE_UPDATE_DOCS_LINKS=${TOGGLE_UPDATE_DOCS_LINKS:-false}
2828
TOGGLE_INCLUDE_BODY=${TOGGLE_INCLUDE_BODY:-true}
2929
TOGGLE_ADD_DOCS_LINKS=${TOGGLE_ADD_DOCS_LINKS:-true}
3030
TOKEN_URL_ENV=${TOKEN_URL_ENV:-""}
3131

32-
DESCRIPTION_FILE=${DESCRIPTION_FILE:-"../collection-description.md"}
3332
current_api_revision=$(<"$OPENAPI_FOLDER/$VERSION_FILE_NAME")
3433

3534
pushd "${TMP_FOLDER}"

0 commit comments

Comments
 (0)