1
0
mirror of https://github.com/immich-app/immich.git synced 2025-07-07 06:16:05 +02:00

refactor(mobile): open api dto upgrade (#12793)

This commit is contained in:
Jason Rasmussen
2024-09-23 15:41:41 -04:00
committed by GitHub
parent 3008050e4c
commit ad33ce5938
197 changed files with 205 additions and 288 deletions

View File

@ -9,11 +9,7 @@ function dart {
wget -O native_class.mustache https://raw.githubusercontent.com/OpenAPITools/openapi-generator/$OPENAPI_GENERATOR_VERSION/modules/openapi-generator/src/main/resources/dart2/serialization/native/native_class.mustache
patch --no-backup-if-mismatch -u native_class.mustache <native_class.mustache.patch
cd ../../
wget -O api_client.mustache https://raw.githubusercontent.com/OpenAPITools/openapi-generator/$OPENAPI_GENERATOR_VERSION/modules/openapi-generator/src/main/resources/dart2/api_client.mustache
patch --no-backup-if-mismatch -u api_client.mustache <api_client.mustache.patch
cd ../../
cd ../../../../
npx --yes @openapitools/openapi-generator-cli generate -g dart -i ./immich-openapi-specs.json -o ../mobile/openapi -t ./templates/mobile
# Post generate patches
@ -40,4 +36,4 @@ elif [[ $1 == 'typescript' ]]; then
else
dart
typescript
fi
fi