You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by da...@apache.org on 2021/06/14 12:09:22 UTC
[sling-org-apache-sling-feature-extension-apiregions] branch master
updated: Update api-regions.md
This is an automated email from the ASF dual-hosted git repository.
davidb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-extension-apiregions.git
The following commit(s) were added to refs/heads/master by this push:
new fc3ae50 Update api-regions.md
fc3ae50 is described below
commit fc3ae50db216e50e314bc815cb792add0f5f63e7
Author: David Bosschaert <da...@apache.org>
AuthorDate: Mon Jun 14 13:09:17 2021 +0100
Update api-regions.md
Add `placeholder-regex`
---
docs/api-regions.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/docs/api-regions.md b/docs/api-regions.md
index 6769c06..4e0f18a 100644
--- a/docs/api-regions.md
+++ b/docs/api-regions.md
@@ -230,12 +230,13 @@ For each property a JSON object contains additional information about this prope
* `deprecated` : If this configuration should not be used anymore a human readable message.
* `includes` : An array of values. If configured, these values must be present.
* `excludes` : An array of values. If configured, these values must not be present.
-* `pattern` : A regular expression to validate the value.
+* `regex` : A regular expression to validate the value.
* `range` : An object which can have a `min` and/or a `max` property to further specify the value range.
* `options` : An array of objects acting as an enumeration for the allowed values. Each option must have a `value` property. It might also have a `title` or `description` property.
* `default` : A default value which might be used depending on the validation mode.
* `mode` : Validation mode for the property overriding the global one or one set for the configuration.
* `placeholder-policy` : The placeholder policy defines whether a placeholder is allowed or required for a property. With `DEFAULT` the policy of the property type is used. `ALLOW`, `REQUIRE` , or `DENY` can be used to override that.
+* `placeholder-regex` : A regular expression to validate the value, used if the value is expressed as a placeholder.
``` json
"configuration-api:JSON" : {