You've already forked immich
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:
@ -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
|
||||
|
Reference in New Issue
Block a user