Skip to content

Commit dc6e4b8

Browse files
fix: use camelCase query params per OpenAPI spec
Query params allowMissing and updateMask use camelCase as documented in the Bytebase OpenAPI spec at api.bytebase.com. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f9377e6 commit dc6e4b8

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/1-bb-masking-semantic-type-global.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
CHANGED_FILE="masking/global-masking-rule.json"
110110
echo "Processing: $CHANGED_FILE"
111111
112-
response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/workspaces/-/policies/masking_rule?allow_missing=true&update_mask=payload" \
112+
response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/workspaces/-/policies/masking_rule?allowMissing=true&updateMask=payload" \
113113
--header "Authorization: Bearer ${{ steps.bytebase-login.outputs.token }}" \
114114
--header "Content-Type: application/json" \
115115
--data @"$CHANGED_FILE")

.github/workflows/2-bb-masking-column.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
PROJECT_NAME=$(echo "$CHANGED_FILE" | sed -n 's/masking\/projects\/\([^/]*\).*/\1/p')
100100
echo "PROJECT_NAME=$PROJECT_NAME"
101101
102-
response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/projects/${PROJECT_NAME}/policies/masking_exemption?allow_missing=true&update_mask=payload" \
102+
response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/projects/${PROJECT_NAME}/policies/masking_exemption?allowMissing=true&updateMask=payload" \
103103
--header "Authorization: Bearer ${{ steps.bytebase-login.outputs.token }}" \
104104
--header "Content-Type: application/json" \
105105
--data @"$CHANGED_FILE")

.github/workflows/3-bb-masking-classification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
CHANGED_FILE="masking/global-masking-rule-classification.json"
9292
echo "Processing: $CHANGED_FILE"
9393
94-
response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/workspaces/-/policies/masking_rule?allow_missing=true&update_mask=payload" \
94+
response=$(curl -s -w "\n%{http_code}" --request PATCH "${{ steps.bytebase-login.outputs.api_url }}/workspaces/-/policies/masking_rule?allowMissing=true&updateMask=payload" \
9595
--header "Authorization: Bearer ${{ steps.bytebase-login.outputs.token }}" \
9696
--header "Content-Type: application/json" \
9797
--data @"$CHANGED_FILE")

masking/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Docs: https://www.bytebase.com/docs/security/data-masking/global-masking-rule/
2525
API: https://api.bytebase.com/#tag/orgpolicyservice/PATCH/v1/policies/{policy}
2626

2727
```bash
28-
curl --request PATCH "${bytebase_url}/v1/workspaces/-/policies/masking_rule?allow_missing=true&update_mask=payload" \
28+
curl --request PATCH "${bytebase_url}/v1/workspaces/-/policies/masking_rule?allowMissing=true&updateMask=payload" \
2929
--header 'Authorization: Bearer '${bytebase_token} \
3030
--data @global-masking-rule.json
3131
```

masking/projects/project-sample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ API: https://api.bytebase.com/#tag/orgpolicyservice/PATCH/v1/projects/{project}/
66

77
```bash
88
export project_id=project-sample
9-
curl --request PATCH "${bytebase_url}/v1/projects/${project_id}/policies/masking_exemption?allow_missing=true&update_mask=payload" \
9+
curl --request PATCH "${bytebase_url}/v1/projects/${project_id}/policies/masking_exemption?allowMissing=true&updateMask=payload" \
1010
--header 'Authorization: Bearer '${bytebase_token} \
1111
--data @masking-exemption.json
1212
```

0 commit comments

Comments
 (0)