From eb8bd9ab1a7d639ccba5d12c4382b79c0f5b9a3f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 11 Aug 2021 14:38:07 +0200 Subject: Try to fix openapi script --- scripts/openapi-clients.sh | 3 ++- scripts/release.sh | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/openapi-clients.sh b/scripts/openapi-clients.sh index c799658e3..1047e1477 100755 --- a/scripts/openapi-clients.sh +++ b/scripts/openapi-clients.sh @@ -59,11 +59,12 @@ for lang in ${API_LANGS//:/ } ; do git clone "https://${host_path}" "$out_dir" fi - npx openapi-generator generate \ + npx @openapitools/openapi-generator-cli generate \ -i support/doc/api/openapi.yaml \ -c "${lang_dir}/def.yaml" \ -t "${lang_dir}" \ -g "$lang" \ + --skip-validate-spec --git-host "${API_REPO_HOST}" \ --git-user-id "${API_URL_USERNAME}" \ --git-repo-id "${git_repo_id}" \ diff --git a/scripts/release.sh b/scripts/release.sh index 195f19b45..6423d17ee 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -60,8 +60,6 @@ fi npm version -f --no-git-tag-version --no-commit-hooks "$1" -./scripts/openapi-peertube-version.sh - git commit package.json client/package.json ./support/doc/api/openapi.yaml -m "Bumped to version $version" git tag -s -a "$version" -m "$version" -- cgit v1.2.3