mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 09:12:57 +02:00
refactor(mobile): open api dto upgrade (#12793)
This commit is contained in:
parent
3008050e4c
commit
ad33ce5938
197 changed files with 205 additions and 288 deletions
open-api/bin
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue