|
|
|
@@ -12,6 +12,13 @@ find ./src/app/core/api/v1/model -type f -exec sed -i '' -e "s/hydralast/'hydra: |
|
|
|
find ./src/app/core/api/v1/model -type f -exec sed -i '' -e "s/hydranext/'hydra:next'/g" {} + |
|
|
|
find ./src/app/core/api/v1/model -type f -exec sed -i '' -e "s/hydraprevious/'hydra:previous'/g" {} + |
|
|
|
|
|
|
|
# Entferne "context?: ..." |
|
|
|
find ./src/app/core/api/v1/model -type f -name '*.ts' -exec sed -i '' '/context\?: .*;/d' {} + |
|
|
|
|
|
|
|
# Ersetze in jeder Datei nur das erste Vorkommen von "readonly type?: string;" |
|
|
|
# durch "readonly xType?: string;" |
|
|
|
find ./src/app/core/api/v1/model -type f -name '*.ts' -exec perl -i -pe 'if($.==1){$x=0} if(!$x && /^(\s*)readonly type\?: string;/){ $x=1; s//$1readonly xType?: string;/ }' {} \; |
|
|
|
|
|
|
|
|
|
|
|
# https://dev.to/martinmcwhorter/generate-angular-reactiveforms-from-swagger-openapi-35h9 -> alternative |
|
|
|
# https://github.com/Humbertda/ngx-openapi-form-generator -> alternative |
|
|
|
|