diff --git a/.github/scripts/split_spec.sh b/.github/scripts/split_spec.sh index 8dc0dbe1b4..c8458e6522 100755 --- a/.github/scripts/split_spec.sh +++ b/.github/scripts/split_spec.sh @@ -10,7 +10,6 @@ foascli split -s openapi-foas.json --env "${target_env:?}" -o ./openapi/v2/opena mv -f "openapi-foas.json" "./openapi/v2.json" foascli split -s openapi-foas.yaml --env "${target_env:?}" -o ./openapi/v2/openapi.yaml -mv -f "openapi-foas.yaml" "./openapi/v2.yaml" # Create folder if it does not exist mkdir -p ./openapi/v2/private @@ -18,5 +17,7 @@ mkdir -p ./openapi/v2/private echo "Moving preview files to preview and private-preview folder" find ./openapi/v2 -type f -name "*private-preview*" -exec mv -f {} ./openapi/v2/private/ \; -# Generate the versions.json file for private preview APIs +echo "Generate the versions.json file for private preview APIs" foascli versions --spec openapi-foas.json --stability-level PRIVATE-PREVIEW -o ./openapi/v2/private/versions.json + +mv -f "openapi-foas.yaml" "./openapi/v2.yaml" diff --git a/openapi/private/versions.json b/openapi/private/versions.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/openapi/private/versions.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file