Skip to content

Commit 5e8daec

Browse files
committed
Add remove options form public swagger code.
1 parent 2b5fbcc commit 5e8daec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/infrastructure/swagger/merge.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ function generate_public_swagger() {
8888
yq 'del(.security)' |
8989
yq 'del(.paths./_status)' |
9090
yq 'del(.. | select(has("StatusOK")).StatusOK)' |
91-
yq 'del(.components.securitySchemes."${authoriser_name}")' \
91+
yq 'del(.components.securitySchemes."${authoriser_name}")' |
92+
yq 'del(.components.responses.CorsOK)' |
93+
yq 'del(.components.schemas.Empty)' |
94+
yq 'del(.tags[] | select(.name == "Options"))' |
95+
yq 'del(.paths.*.options)' \
9296
>${PUBLIC_SWAGGER_FILE}
9397
echo "Generated ${PUBLIC_SWAGGER_FILE}"
9498
validate_yaml ${PUBLIC_SWAGGER_FILE}

0 commit comments

Comments
 (0)