|
|
|
@ -1,14 +1,6 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
artifactsDirectory="${1}"
|
|
|
|
|
buildNumber="${2}"
|
|
|
|
|
if [[ -n ${buildNumber} ]]; then
|
|
|
|
|
# Unstable build
|
|
|
|
|
additionalProperties=",snapshotVersion=-SNAPSHOT.${buildNumber},npmRepository=https://pkgs.dev.azure.com/jellyfin-project/jellyfin/_packaging/unstable/npm/registry/"
|
|
|
|
|
else
|
|
|
|
|
# Stable build
|
|
|
|
|
additionalProperties=""
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
java -jar openapi-generator-cli.jar generate \
|
|
|
|
|
--input-spec ${artifactsDirectory}/openapispec/openapi.json \
|
|
|
|
@ -16,4 +8,4 @@ java -jar openapi-generator-cli.jar generate \
|
|
|
|
|
--output ./apiclient/generated/typescript/axios \
|
|
|
|
|
--template-dir ./apiclient/templates/typescript/axios \
|
|
|
|
|
--ignore-file-override ./apiclient/.openapi-generator-ignore \
|
|
|
|
|
--additional-properties=useSingleRequestParameter="true",withSeparateModelsAndApi="true",modelPackage="models",apiPackage="api",npmName="axios"${additionalProperties}
|
|
|
|
|
--additional-properties=useSingleRequestParameter="true",withSeparateModelsAndApi="true",modelPackage="models",apiPackage="api",npmName="axios"
|
|
|
|
|