Skip to content

Commit 365d398

Browse files
committed
Update policy package schema documentation to reflect rucio#7489
1 parent 45522cf commit 365d398

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/operator/policy_packages.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,20 @@ called for this action instead.
172172

173173
The schema module of a policy package does not need to define all of
174174
the schema values. Any missing ones will automatically be loaded from
175-
the generic schema module instead.
175+
the generic schema module instead. It is also possible for the schema
176+
values in the policy package to reference values in the generic
177+
schema. For example:
178+
179+
```python
180+
ACCOUNT = {"description": "Account name",
181+
"type": "string",
182+
"maxLength": "%%ACCOUNT_LENGTH",
183+
"pattern": "^[a-z0-9-_]+$"}
184+
```
185+
186+
The above example will use `ACCOUNT_LENGTH` as defined in the generic
187+
schema (unless it is also defined in the policy package, in which case
188+
the definition in the policy package will take precedence).
176189

177190
## Policy algorithms
178191

0 commit comments

Comments
 (0)