commit 7a05b442fe9c3f22144a2db5151bbf1cb7eadca1
parent eb97aa4cf503bdc7955dda78bc1599d5a0660603
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 30 Mar 2021 13:11:34 +0200
document 'optional'
Diffstat:
1 file changed, 20 insertions(+), 0 deletions(-)
diff --git a/anastasis.rst b/anastasis.rst
@@ -1187,6 +1187,20 @@ providers that accept payments in the selected currency:
"uuid" : "83d655c7-bdb6-484d-904e-80c1058c8854"
"widget": "anastasis_gtk_ia_birthdate"
},
+ {
+ "type": "string",
+ "name": "tax_number",
+ "label": "Taxpayer identification number",
+ "label_i18n":{
+ "de_DE": "Steuerliche Identifikationsnummer",
+ "de_CH": "Steuerliche Identifikationsnummer",
+ "en": "German taxpayer identification number"
+ },
+ "widget": "anastasis_gtk_ia_tax_de",
+ "uuid": "dae48f85-e3ff-47a4-a4a3-ed981ed8c3c6",
+ "validation-regex": "^[0-9]{11}$",
+ "validation-logic": "DE_TIN_check"
+ },
{
"type": "string",
"name": "social_security_number",
@@ -1200,6 +1214,7 @@ providers that accept payments in the selected currency:
"widget": "anastasis_gtk_ia_ssn",
"validation-regex": "^[0-9]{8}[[:upper:]][0-9]{3}$",
"validation-logic": "DE_SVN_check"
+ "optional" : true
}
],
"authentication_providers": {
@@ -1263,6 +1278,11 @@ that must be provided includes:
client, the respective validation can be skipped (at the expense of
typos by users not being detected, possibly rendering secrets
irrecoverable).
+ - **optional**: optional boolean field that, if ``true``, indicates that
+ this attribute is not actually required but optional and users MAY leave
+ it blank in case they do not have the requested information. Used for
+ common fields that apply to some large part of the population but are
+ not sufficiently universal to be actually required.
The authentication providers are listed under a key that is the
base URL of the service. For each provider, the following