Skip to content

Commit dfa7c5a

Browse files
authored
chore: Exclude upcoming OpenAPI versions (#617)
1 parent 7a40092 commit dfa7c5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/scripts/fetch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ echo "Fetching versions from $versions_url"
3232
curl --show-error --fail --silent -o "${versions_file}" \
3333
-H "Accept: application/json" "${versions_url}"
3434

35-
# Remove "preview" from versions file if it exists and update the file
36-
jq 'map(select(. != "preview"))' < "./${versions_file}" > "./${versions_file}.tmp"
35+
# Remove "preview" and versions with ".upcoming" suffix from versions file and update the file
36+
jq 'map(select(. != "preview" and (endswith(".upcoming") | not)))' < "./${versions_file}" > "./${versions_file}.tmp"
3737
mv "./${versions_file}.tmp" "./${versions_file}"
3838

3939
## Dynamic Versioned API Version

0 commit comments

Comments
 (0)