From 222adc82353824a05e179da31a3c61d495bd902b Mon Sep 17 00:00:00 2001 From: Alan Date: Thu, 14 Apr 2022 12:31:17 +0100 Subject: [PATCH] DG-25844. Add ACSF openAPI regen script. Note: branch is pineed to 2.139, because the generator is broken in 2.140 (#906) Co-authored-by: Alan Evans --- composer.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/composer.json b/composer.json index 939a0783f..5d0f57e74 100644 --- a/composer.json +++ b/composer.json @@ -160,6 +160,13 @@ "cp cx-api-spec/dist/spec/acquia-spec.yaml assets/", "rm -rf cx-api-spec" ], + "update-acsf-api-spec": [ + "rm -rf gardener", + "git clone --single-branch -b 2.139-RC-1 --depth 1 git@github.com:acquia/gardener.git", + "composer install --working-dir=gardener", + "php gardener/tools/openapi_spec_gen.php gen > assets/acsf-spec.yaml", + "rm -rf gardener" + ], "box-install": [ "curl -f -L https://github.com/box-project/box/releases/download/3.15.0/box.phar -o build/box.phar" ],