Skip to content

Commit

Permalink
Adding Id to resource policy
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Sep 11, 2023
1 parent 89e5f7d commit 549d1df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/policy/resourcePolicySchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,20 @@
}
},
"additionalProperties": false
},
"IamPolicyItem": {
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
}
},
"properties": {
"Version": {
"type": "string",
"const": "2012-10-17"
},
"Id": {
"$ref": "#/definitions/IamPolicyItem"
},
"Statement": {
"oneOf": [
{
Expand Down
1 change: 1 addition & 0 deletions tests/unit/models/BucketPolicy.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const BucketPolicy = require('../../../lib/models/BucketPolicy').default;

const testBucketPolicy = {
Version: '2012-10-17',
Id:'cd3ad3d9-2776-4ef1-a904-4c229d1642ee',

Check failure on line 7 in tests/unit/models/BucketPolicy.spec.js

View workflow job for this annotation

GitHub Actions / test

Missing space before value for key 'Id'
Statement: [
{
Effect: 'Allow',
Expand Down

0 comments on commit 549d1df

Please sign in to comment.