This is an automated email from the ASF dual-hosted git repository.
cziegeler 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 9418d49 SLING-10647 : Support validation mode for deprecated api
9418d49 is described below
commit 9418d49b86f9cb006fb0035c8e7447c319f4e2e2
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Fri Jul 23 08:46:00 2021 +0200
SLING-10647 : Support validation mode for deprecated api
---
docs/api-regions.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/docs/api-regions.md b/docs/api-regions.md
index 106162d..ffab4a2 100644
--- a/docs/api-regions.md
+++ b/docs/api-regions.md
@@ -150,6 +150,8 @@ The usual process for deprecating Java API is to mark it
with a corresponding an
The deprecation information can just be the message, or it can also include
information when the deprecated started (since) and by when the member is
expected to be removed (for-removal). The removal information should be either
the string `true` or a date in the format `YYYY-MM-DD`.
+In addition a mode can be specified for a message, values are LENIENT
(default) or STRICT. This mode is used by the analyser to decide whether a
warning (LENIENT) or error (STRICT) should be issued if a deprecated package is
used.
+
## OSGi Configurations
Apart from defining the Java API surface, for some applications it is
beneficial to describe the OSGi configuration surface, too. For example, a
framework might not allow an application to set some configurations or update
existing configurations.
@@ -239,7 +241,7 @@ For each property a JSON object contains additional
information about this prope
* `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.
+* `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.