Skip to content

Commit

Permalink
Merge pull request #11 from mittwald/bugfix/openapi-spec-download
Browse files Browse the repository at this point in the history
When downloading API spec, follow redirects and fail on error
  • Loading branch information
mfal authored Feb 26, 2024
2 parents d05f951 + f2a482f commit 0ca0b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mittwald/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"build": "run build:clean && run tsc",
"build:clean": "run rimraf dist",
"build:client": "run acg generate --name MittwaldAPIV2 spec/openapi.json src/generated/v2 --optionalHeader x-access-token",
"build:fetch-openapi": "curl --silent https://api.mittwald.de/openapi | spec/transform-openapi.sh > spec/openapi.json",
"build:fetch-openapi": "bash -e -o pipefail -c 'curl --location --fail --silent https://api.mittwald.de/openapi | spec/transform-openapi.sh > spec/openapi.json'",
"build:write-version-file": "run tsx dev/writeVersion.ts",
"format": "run prettier --write '**/*.{ts,tsx,yaml,yml,json,md,mdx,js}'",
"lint": "run eslint .",
Expand Down

0 comments on commit 0ca0b23

Please sign in to comment.