Skip to content

Commit

Permalink
doc: Adds support for SDK_BRANCH in schema generation (#2562)
Browse files Browse the repository at this point in the history
* doc: Add support for SDK_BRANCH

* chore: revert unintentional change on save

* doc: remove, can be confusing to users without cloud-dev access
  • Loading branch information
EspenAlbert authored Sep 10, 2024
1 parent 7425b8d commit 56feda7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/schema-scaffold.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ set -euo pipefail

: "${1?"Name of resource or data source must be provided."}"

SDK_BRANCH="${SDK_BRANCH:-"main"}"
# URL to download Atlas Admin API Spec
atlas_admin_api_spec="https://raw.githubusercontent.com/mongodb/atlas-sdk-go/main/openapi/atlas-api-transformed.yaml"
atlas_admin_api_spec="https://raw.githubusercontent.com/mongodb/atlas-sdk-go/${SDK_BRANCH}/openapi/atlas-api-transformed.yaml"

echo "Downloading api spec"
curl -L "$atlas_admin_api_spec" -o "./api-spec.yml"
Expand Down

0 comments on commit 56feda7

Please sign in to comment.