Skip to content

Commit 6dce2af

Browse files
authored
adding description to schema and making tags and relay state as option (#67)
1 parent dcc8f92 commit 6dce2af

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

lib/payload-schema-definitions/PermissionSet-createUpdateAPI.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
"required": [
2525
"permissionSetName",
2626
"sessionDurationInMinutes",
27-
"relayState",
28-
"tags",
2927
"managedPoliciesArnList",
3028
"inlinePolicyDocument"
3129
],
@@ -34,12 +32,22 @@
3432
"$id": "#/properties/permissionSetData/properties/permissionSetName",
3533
"type": "string",
3634
"title": "Permission Set Name",
37-
"description": "Permission Set Nam",
35+
"description": "Permission Set Name",
3836
"default": "",
3937
"minLength": 1,
4038
"maxLength": 32,
4139
"pattern": "[\\w+=,.@-]+"
4240
},
41+
"description": {
42+
"$id": "#/properties/permissionSetData/properties/description",
43+
"type": "string",
44+
"title": "description",
45+
"description": "Permission set description",
46+
"default": "",
47+
"minLength": 0,
48+
"maxLength": 700,
49+
"pattern": "[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u00A1-\\u00FF]*"
50+
},
4351
"sessionDurationInMinutes": {
4452
"$id": "#/properties/permissionSetData/properties/sessionDurationInMinutes",
4553
"type": "string",
@@ -94,7 +102,7 @@
94102
"default": "",
95103
"minLength": 0,
96104
"maxLength": 256,
97-
"pattern": "^[A-Za-z0-9_:/=\\+\\-@]*$"
105+
"pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
98106
}
99107
},
100108
"additionalProperties": false

lib/payload-schema-definitions/PermissionSet-createUpdateS3.json

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
"required": [
99
"permissionSetName",
1010
"sessionDurationInMinutes",
11-
"relayState",
12-
"tags",
1311
"managedPoliciesArnList",
1412
"inlinePolicyDocument"
1513
],
@@ -18,12 +16,22 @@
1816
"$id": "#/properties/permissionSetName",
1917
"type": "string",
2018
"title": "Permission Set Name",
21-
"description": "Permission Set Nam",
19+
"description": "Permission Set Name",
2220
"default": "",
2321
"minLength": 1,
2422
"maxLength": 32,
2523
"pattern": "[\\w+=,.@-]+"
2624
},
25+
"description": {
26+
"$id": "#/properties/description",
27+
"type": "string",
28+
"title": "description",
29+
"description": "Permission set description",
30+
"default": "",
31+
"minLength": 0,
32+
"maxLength": 700,
33+
"pattern": "[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u00A1-\\u00FF]*"
34+
},
2735
"sessionDurationInMinutes": {
2836
"$id": "#/properties/sessionDurationInMinutes",
2937
"type": "string",
@@ -44,7 +52,7 @@
4452
"pattern": "[A-Za-z0-9_:/=\\+\\-@#]+"
4553
},
4654
"tags": {
47-
"$id": "#/properties/tags",
55+
"$id": "#/properties/tags",
4856
"type": "array",
4957
"title": "tags",
5058
"description": "tags",
@@ -78,7 +86,7 @@
7886
"default": "",
7987
"minLength": 0,
8088
"maxLength": 256,
81-
"pattern": "^[A-Za-z0-9_:/=\\+\\-@]*$"
89+
"pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
8290
}
8391
},
8492
"additionalProperties": false

0 commit comments

Comments
 (0)