diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-11 14:38:07 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-11 14:38:07 +0200 |
commit | eb8bd9ab1a7d639ccba5d12c4382b79c0f5b9a3f (patch) | |
tree | 0177c8c65d0a343293b88a5a1961aff80dc8eff0 /scripts/openapi-clients.sh | |
parent | 5b075bc54957b08c10af9cc7364b49f8a598cadb (diff) | |
download | PeerTube-eb8bd9ab1a7d639ccba5d12c4382b79c0f5b9a3f.tar.gz PeerTube-eb8bd9ab1a7d639ccba5d12c4382b79c0f5b9a3f.tar.zst PeerTube-eb8bd9ab1a7d639ccba5d12c4382b79c0f5b9a3f.zip |
Try to fix openapi script
Diffstat (limited to 'scripts/openapi-clients.sh')
-rwxr-xr-x | scripts/openapi-clients.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 | |||
59 | git clone "https://${host_path}" "$out_dir" | 59 | git clone "https://${host_path}" "$out_dir" |
60 | fi | 60 | fi |
61 | 61 | ||
62 | npx openapi-generator generate \ | 62 | npx @openapitools/openapi-generator-cli generate \ |
63 | -i support/doc/api/openapi.yaml \ | 63 | -i support/doc/api/openapi.yaml \ |
64 | -c "${lang_dir}/def.yaml" \ | 64 | -c "${lang_dir}/def.yaml" \ |
65 | -t "${lang_dir}" \ | 65 | -t "${lang_dir}" \ |
66 | -g "$lang" \ | 66 | -g "$lang" \ |
67 | --skip-validate-spec | ||
67 | --git-host "${API_REPO_HOST}" \ | 68 | --git-host "${API_REPO_HOST}" \ |
68 | --git-user-id "${API_URL_USERNAME}" \ | 69 | --git-user-id "${API_URL_USERNAME}" \ |
69 | --git-repo-id "${git_repo_id}" \ | 70 | --git-repo-id "${git_repo_id}" \ |