Skip to content

Commit 2fc6a7a

Browse files
authored
feat(131): allow show_deleted on Get (#121)
1 parent 09e6f51 commit 2fc6a7a

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

rules/aep0131/request_unknown_fields.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ import (
2525
)
2626

2727
var allowedFields = stringset.New(
28-
"path", // AEP-131
29-
"request_id", // AEP-155
30-
"read_mask", // AEP-157
31-
"view", // AEP-157
28+
"path", // AEP-131
29+
"request_id", // AEP-155
30+
"read_mask", // AEP-157
31+
"view", // AEP-157
32+
"show_deleted", // AEP-164
3233
)
3334

3435
// Get methods should not have unrecognized fields.

rules/aep0131/request_unknown_fields_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func TestUnknownFields(t *testing.T) {
4444
{"Invalid", "GetBookRequest", "application_id", builder.FieldTypeString(), testutils.Problems{{
4545
Message: "Unexpected field",
4646
}}},
47+
{"ShowDeleted", "GetBookRequest", "show_deleted", builder.FieldTypeBool(), testutils.Problems{}},
4748
{"Irrelevant", "AcquireBookRequest", "application_id", builder.FieldTypeString(), testutils.Problems{}},
4849
}
4950

0 commit comments

Comments
 (0)