Skip to content

Commit ad9df8e

Browse files
authored
Update API client with latest OpenAPI spec (#328)
* Update API client with latest OpenAPI spec * Use a cache bust for the OpenAPI spec
1 parent 9b886f3 commit ad9df8e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/tiny-pandas-run.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@gitbook/api': minor
3+
---
4+
5+
Update API client with latest OpenAPI spec

packages/api/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ mkdir ./spec
77
LOCAL_OPENAPI_FILE=../../../gitbook-x/packages/api-client/static/openapi.yaml
88

99
if [[ -z "${GITBOOK_OPENAPI_URL}" ]]; then
10-
OPENAPI_URL="https://api.gitbook.com/openapi.yaml"
10+
OPENAPI_URL="https://api.gitbook.com/openapi.yaml?cacheBust=$(date +%s)"
1111
else
1212
OPENAPI_URL="${GITBOOK_OPENAPI_URL}"
1313
fi

0 commit comments

Comments
 (0)