feat: adapt to tiramisu-web-ui

This commit is contained in:
egarette@silique.fr 2025-09-22 09:42:46 +02:00
parent 2652fc9db6
commit 1fe10dbe20
387 changed files with 4835 additions and 2025 deletions

View file

@ -5,8 +5,8 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"POT-Creation-Date: 2025-05-05 10:06+0200\n" "POT-Creation-Date: 2025-09-22 09:40+0200\n"
"PO-Revision-Date: 2025-05-05 10:08+0200\n" "PO-Revision-Date: 2025-09-22 09:42+0200\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: fr\n" "Language: fr\n"
@ -14,21 +14,21 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n" "Generated-By: pygettext.py 1.5\n"
"X-Generator: Poedit 3.5\n" "X-Generator: Poedit 3.7\n"
#: src/rougail/output_doc/annotator.py:313 #: src/rougail/output_doc/annotator.py:298
msgid "the value of the information \"{0}\" of the variable \"{1}\"" msgid "the value of the information \"{0}\" of the variable \"{1}\""
msgstr "la valeur de l'information \"{0}\" de la variable \"{1}\"" msgstr "la valeur de l'information \"{0}\" de la variable \"{1}\""
#: src/rougail/output_doc/annotator.py:316 #: src/rougail/output_doc/annotator.py:301
msgid "the value of the global information \"{0}\"" msgid "the value of the global information \"{0}\""
msgstr "la valeur de l'information globale \"{0}\"" msgstr "la valeur de l'information globale \"{0}\""
#: src/rougail/output_doc/annotator.py:323 #: src/rougail/output_doc/annotator.py:308
msgid "when the identifier is \"{0}\"" msgid "when the identifier is \"{0}\""
msgstr "lorsque l'identifiant est \"{0}\"" msgstr "lorsque l'identifiant est \"{0}\""
#: src/rougail/output_doc/annotator.py:325 #: src/rougail/output_doc/annotator.py:310
msgid "when the identifier is not \"{0}\"" msgid "when the identifier is not \"{0}\""
msgstr "lorsque l'identifiant n'est pas \"{0}\"" msgstr "lorsque l'identifiant n'est pas \"{0}\""
@ -65,98 +65,126 @@ msgid "verify if disable modes already exists"
msgstr "vérifier le mode existe déjà" msgstr "vérifier le mode existe déjà"
#: src/rougail/output_doc/config.py:113 #: src/rougail/output_doc/config.py:113
msgid "Modify values to document leaderships and dynamics families"
msgstr "Valeurs modifiées pour documenter les familles leader ou dynamique"
#: src/rougail/output_doc/config.py:117
msgid "Generate document in format" msgid "Generate document in format"
msgstr "Générer le document au format" msgstr "Générer le document au format"
#: src/rougail/output_doc/doc.py:90 #: src/rougail/output_doc/doc.py:89
msgid "mandatory" msgid "mandatory"
msgstr "obligatoire" msgstr "obligatoire"
#: src/rougail/output_doc/doc.py:91 #: src/rougail/output_doc/doc.py:90
msgid "hidden" msgid "hidden"
msgstr "cachée" msgstr "cachée"
#: src/rougail/output_doc/doc.py:92 #: src/rougail/output_doc/doc.py:91
msgid "disabled" msgid "disabled"
msgstr "désactivé" msgstr "désactivé"
#: src/rougail/output_doc/doc.py:93 #: src/rougail/output_doc/doc.py:92
msgid "unique" msgid "unique"
msgstr "unique" msgstr "unique"
#: src/rougail/output_doc/doc.py:94 #: src/rougail/output_doc/doc.py:93
msgid "auto modified" msgid "auto modified"
msgstr "auto modifiée" msgstr "auto modifiée"
#: src/rougail/output_doc/doc.py:309 #: src/rougail/output_doc/doc.py:325
msgid "This family contains lists of variable blocks." msgid "This family contains lists of variable blocks."
msgstr "Cette famille contient des listes de bloc de variable." msgstr "Cette famille contient des listes de bloc de variable."
#: src/rougail/output_doc/doc.py:317 #: src/rougail/output_doc/doc.py:333
msgid "This family builds families dynamically." msgid "This family builds families dynamically."
msgstr "Cette famille construit des familles dynamiquement." msgstr "Cette famille construit des familles dynamiquement."
#: src/rougail/output_doc/doc.py:347 #: src/rougail/output_doc/doc.py:347
msgid "Default"
msgstr "Défaut"
#: src/rougail/output_doc/doc.py:365
msgid "multiple" msgid "multiple"
msgstr "multiple" msgstr "multiple"
#: src/rougail/output_doc/doc.py:368 #: src/rougail/output_doc/doc.py:373
msgid "Example"
msgstr "Exemple"
#: src/rougail/output_doc/doc.py:375
msgid "Examples"
msgstr "Exemples"
#: src/rougail/output_doc/doc.py:391
msgid "No attribute \"description\" for \"{0}\" in {1}" msgid "No attribute \"description\" for \"{0}\" in {1}"
msgstr "Aucun attribut \"description\" pour \"{0}\" dans {1}" msgstr "Aucun attribut \"description\" pour \"{0}\" dans {1}"
#: src/rougail/output_doc/doc.py:482 #: src/rougail/output_doc/doc.py:512
msgid "(default)"
msgstr "(défaut)"
#: src/rougail/output_doc/doc.py:489
msgid "text based with regular expressions \"{0}\"" msgid "text based with regular expressions \"{0}\""
msgstr "texte avec expression rationnelle \"{0}\"" msgstr "texte avec expression rationnelle \"{0}\""
#: src/rougail/output_doc/doc.py:583 #: src/rougail/output_doc/doc.py:518
msgid "Validator"
msgstr "Validateur"
#: src/rougail/output_doc/doc.py:521
msgid "Validators"
msgstr "Validateurs"
#: src/rougail/output_doc/doc.py:534
msgid "(default)"
msgstr "(défaut)"
#: src/rougail/output_doc/doc.py:539
msgid "Choices"
msgstr "Choix"
#: src/rougail/output_doc/doc.py:630
msgid "depends on a calculation" msgid "depends on a calculation"
msgstr "dépend d'un calcul" msgstr "dépend d'un calcul"
#: src/rougail/output_doc/doc.py:584 #: src/rougail/output_doc/doc.py:632
msgid "\"{0}\" is a calculation for {1} but has no description in {2}" msgid "\"{0}\" is a calculation for {1} but has no description in {2}"
msgstr "\"{0}\" est un calcul pour {1} mais n'a pas de description dans {2}" msgstr "\"{0}\" est un calcul pour {1} mais n'a pas de description dans {2}"
#: src/rougail/output_doc/doc.py:605 src/rougail/output_doc/doc.py:681 #: src/rougail/output_doc/doc.py:655 src/rougail/output_doc/doc.py:745
msgid "depends on an undocumented variable" msgid "depends on an undocumented variable"
msgstr "dépends d'une variable non documentée" msgstr "dépends d'une variable non documentée"
#: src/rougail/output_doc/doc.py:607 #: src/rougail/output_doc/doc.py:657
msgid "when the variable \"{0}\" hasn't the value \"{1}\"" msgid "when the variable \"{0}\" hasn't the value \"{1}\""
msgstr "lorsque la variable \"{0}\" n'a pas la valeur \"{1}\"" msgstr "lorsque la variable \"{0}\" n'a pas la valeur \"{1}\""
#: src/rougail/output_doc/doc.py:609 #: src/rougail/output_doc/doc.py:659
msgid "when the variable \"{0}\" has the value \"{1}\"" msgid "when the variable \"{0}\" has the value \"{1}\""
msgstr "lorsque la variable \"{0}\" a la valeur \"{1}\"" msgstr "lorsque la variable \"{0}\" a la valeur \"{1}\""
#: src/rougail/output_doc/doc.py:624 #: src/rougail/output_doc/doc.py:674
msgid "the value of the variable \"{0}\"" msgid "the value of the variable \"{0}\""
msgstr "la valeur de la variable \"{0}\"" msgstr "la valeur de la variable \"{0}\""
#: src/rougail/output_doc/doc.py:625 #: src/rougail/output_doc/doc.py:675
msgid "the value of an undocumented variable" msgid "the value of an undocumented variable"
msgstr "la valeur d'une variable non documentée" msgstr "la valeur d'une variable non documentée"
#: src/rougail/output_doc/doc.py:656 #: src/rougail/output_doc/doc.py:714
msgid "the values of undocumented variables" msgid "the values of undocumented variables"
msgstr "les valeurs de variables non documentées" msgstr "les valeurs de variables non documentées"
#: src/rougail/output_doc/doc.py:675 #: src/rougail/output_doc/doc.py:735
msgid "(from an undocumented variable){0}" msgid "(from an undocumented variable){0}"
msgstr "(issue d'une variable non documentée){0}" msgstr "(issue d'une variable non documentée){0}"
#: src/rougail/output_doc/doc.py:679 #: src/rougail/output_doc/doc.py:741
msgid "{0} (from an undocumented variable)" msgid "{0} (from an undocumented variable)"
msgstr "{0} (issue d'une variable non documentée)" msgstr "{0} (issue d'une variable non documentée)"
#: src/rougail/output_doc/doc.py:690 #: src/rougail/output_doc/doc.py:754
msgid "the value of the identifier" msgid "the value of the identifier"
msgstr "la valeur de l'identifiant" msgstr "la valeur de l'identifiant"
#: src/rougail/output_doc/doc.py:694 #: src/rougail/output_doc/doc.py:758
msgid "the value of the {0}" msgid "the value of the {0}"
msgstr "la valeur de l'{0}" msgstr "la valeur de l'{0}"
@ -168,13 +196,13 @@ msgstr "Exemple avec des variables obligatoire non renseignée"
msgid "Example with all variables modifiable" msgid "Example with all variables modifiable"
msgstr "Exemple avec toutes les variables modifiable" msgstr "Exemple avec toutes les variables modifiable"
#: src/rougail/output_doc/output/console.py:142 #: src/rougail/output_doc/output/console.py:145
#: src/rougail/output_doc/utils.py:373 #: src/rougail/output_doc/utils.py:379
msgid "Variable" msgid "Variable"
msgstr "Variable" msgstr "Variable"
#: src/rougail/output_doc/output/console.py:143 #: src/rougail/output_doc/output/console.py:146
#: src/rougail/output_doc/utils.py:373 #: src/rougail/output_doc/utils.py:379
msgid "Description" msgid "Description"
msgstr "Description" msgstr "Description"
@ -278,35 +306,11 @@ msgstr "type de fichier autorisé : {0}"
msgid "Variables for \"{0}\"" msgid "Variables for \"{0}\""
msgstr "Variables pour \"{0}\"" msgstr "Variables pour \"{0}\""
#: src/rougail/output_doc/utils.py:256 #: src/rougail/output_doc/utils.py:257
msgid "Identifiers" msgid "Identifiers"
msgstr "Identifiants" msgstr "Identifiants"
#: src/rougail/output_doc/utils.py:321 #: src/rougail/output_doc/utils.py:400
msgid "Validator"
msgstr "Validateur"
#: src/rougail/output_doc/utils.py:323
msgid "Validators"
msgstr "Validateurs"
#: src/rougail/output_doc/utils.py:325
msgid "Choices"
msgstr "Choix"
#: src/rougail/output_doc/utils.py:327
msgid "Default"
msgstr "Défaut"
#: src/rougail/output_doc/utils.py:331
msgid "Example"
msgstr "Exemple"
#: src/rougail/output_doc/utils.py:333
msgid "Examples"
msgstr "Exemples"
#: src/rougail/output_doc/utils.py:394
msgid "{0}: {1}" msgid "{0}: {1}"
msgstr "{0} : {1}" msgstr "{0} : {1}"

View file

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2025-05-12 08:39+0200\n" "POT-Creation-Date: 2025-09-22 09:42+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -15,19 +15,19 @@ msgstr ""
"Generated-By: pygettext.py 1.5\n" "Generated-By: pygettext.py 1.5\n"
#: src/rougail/output_doc/annotator.py:313 #: src/rougail/output_doc/annotator.py:298
msgid "the value of the information \"{0}\" of the variable \"{1}\"" msgid "the value of the information \"{0}\" of the variable \"{1}\""
msgstr "" msgstr ""
#: src/rougail/output_doc/annotator.py:316 #: src/rougail/output_doc/annotator.py:301
msgid "the value of the global information \"{0}\"" msgid "the value of the global information \"{0}\""
msgstr "" msgstr ""
#: src/rougail/output_doc/annotator.py:323 #: src/rougail/output_doc/annotator.py:308
msgid "when the identifier is \"{0}\"" msgid "when the identifier is \"{0}\""
msgstr "" msgstr ""
#: src/rougail/output_doc/annotator.py:325 #: src/rougail/output_doc/annotator.py:310
msgid "when the identifier is not \"{0}\"" msgid "when the identifier is not \"{0}\""
msgstr "" msgstr ""
@ -64,98 +64,126 @@ msgid "verify if disable modes already exists"
msgstr "" msgstr ""
#: src/rougail/output_doc/config.py:113 #: src/rougail/output_doc/config.py:113
msgid "Modify values to document leaderships and dynamics families"
msgstr ""
#: src/rougail/output_doc/config.py:117
msgid "Generate document in format" msgid "Generate document in format"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:90 #: src/rougail/output_doc/doc.py:89
msgid "mandatory" msgid "mandatory"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:91 #: src/rougail/output_doc/doc.py:90
msgid "hidden" msgid "hidden"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:92 #: src/rougail/output_doc/doc.py:91
msgid "disabled" msgid "disabled"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:93 #: src/rougail/output_doc/doc.py:92
msgid "unique" msgid "unique"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:94 #: src/rougail/output_doc/doc.py:93
msgid "auto modified" msgid "auto modified"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:321 #: src/rougail/output_doc/doc.py:325
msgid "This family contains lists of variable blocks." msgid "This family contains lists of variable blocks."
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:329 #: src/rougail/output_doc/doc.py:333
msgid "This family builds families dynamically." msgid "This family builds families dynamically."
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:361 #: src/rougail/output_doc/doc.py:347
msgid "Default"
msgstr ""
#: src/rougail/output_doc/doc.py:365
msgid "multiple" msgid "multiple"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:383 #: src/rougail/output_doc/doc.py:373
msgid "No attribute \"description\" for \"{0}\" in {1}" msgid "Example"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:504 #: src/rougail/output_doc/doc.py:375
msgid "(default)" msgid "Examples"
msgstr ""
#: src/rougail/output_doc/doc.py:391
msgid "No attribute \"description\" for \"{0}\" in {1}"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:512 #: src/rougail/output_doc/doc.py:512
msgid "text based with regular expressions \"{0}\"" msgid "text based with regular expressions \"{0}\""
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:606 #: src/rougail/output_doc/doc.py:518
msgid "Validator"
msgstr ""
#: src/rougail/output_doc/doc.py:521
msgid "Validators"
msgstr ""
#: src/rougail/output_doc/doc.py:534
msgid "(default)"
msgstr ""
#: src/rougail/output_doc/doc.py:539
msgid "Choices"
msgstr ""
#: src/rougail/output_doc/doc.py:630
msgid "depends on a calculation" msgid "depends on a calculation"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:607 #: src/rougail/output_doc/doc.py:632
msgid "\"{0}\" is a calculation for {1} but has no description in {2}" msgid "\"{0}\" is a calculation for {1} but has no description in {2}"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:630 src/rougail/output_doc/doc.py:720 #: src/rougail/output_doc/doc.py:655 src/rougail/output_doc/doc.py:745
msgid "depends on an undocumented variable" msgid "depends on an undocumented variable"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:632 #: src/rougail/output_doc/doc.py:657
msgid "when the variable \"{0}\" hasn't the value \"{1}\"" msgid "when the variable \"{0}\" hasn't the value \"{1}\""
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:634 #: src/rougail/output_doc/doc.py:659
msgid "when the variable \"{0}\" has the value \"{1}\"" msgid "when the variable \"{0}\" has the value \"{1}\""
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:649 #: src/rougail/output_doc/doc.py:674
msgid "the value of the variable \"{0}\"" msgid "the value of the variable \"{0}\""
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:650 #: src/rougail/output_doc/doc.py:675
msgid "the value of an undocumented variable" msgid "the value of an undocumented variable"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:689 #: src/rougail/output_doc/doc.py:714
msgid "the values of undocumented variables" msgid "the values of undocumented variables"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:710 #: src/rougail/output_doc/doc.py:735
msgid "(from an undocumented variable){0}" msgid "(from an undocumented variable){0}"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:716 #: src/rougail/output_doc/doc.py:741
msgid "{0} (from an undocumented variable)" msgid "{0} (from an undocumented variable)"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:729 #: src/rougail/output_doc/doc.py:754
msgid "the value of the identifier" msgid "the value of the identifier"
msgstr "" msgstr ""
#: src/rougail/output_doc/doc.py:733 #: src/rougail/output_doc/doc.py:758
msgid "the value of the {0}" msgid "the value of the {0}"
msgstr "" msgstr ""
@ -168,12 +196,12 @@ msgid "Example with all variables modifiable"
msgstr "" msgstr ""
#: src/rougail/output_doc/output/console.py:145 #: src/rougail/output_doc/output/console.py:145
#: src/rougail/output_doc/utils.py:375 #: src/rougail/output_doc/utils.py:379
msgid "Variable" msgid "Variable"
msgstr "" msgstr ""
#: src/rougail/output_doc/output/console.py:146 #: src/rougail/output_doc/output/console.py:146
#: src/rougail/output_doc/utils.py:375 #: src/rougail/output_doc/utils.py:379
msgid "Description" msgid "Description"
msgstr "" msgstr ""
@ -281,31 +309,7 @@ msgstr ""
msgid "Identifiers" msgid "Identifiers"
msgstr "" msgstr ""
#: src/rougail/output_doc/utils.py:323 #: src/rougail/output_doc/utils.py:400
msgid "Validator"
msgstr ""
#: src/rougail/output_doc/utils.py:325
msgid "Validators"
msgstr ""
#: src/rougail/output_doc/utils.py:327
msgid "Choices"
msgstr ""
#: src/rougail/output_doc/utils.py:329
msgid "Default"
msgstr ""
#: src/rougail/output_doc/utils.py:333
msgid "Example"
msgstr ""
#: src/rougail/output_doc/utils.py:335
msgid "Examples"
msgstr ""
#: src/rougail/output_doc/utils.py:396
msgid "{0}: {1}" msgid "{0}: {1}"
msgstr "" msgstr ""

View file

@ -27,7 +27,7 @@ classifiers = [
] ]
dependencies = [ dependencies = [
"rougail > 1.1,<2", "rougail-base > 1.1,<2",
"tabulate ~= 0.9.0", "tabulate ~= 0.9.0",
"rich ~= 13.9.3", "rich ~= 13.9.3",
] ]

View file

@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from typing import Union from typing import Union
from rougail.utils import undefined from rougail.utils import undefined, PROPERTY_ATTRIBUTE
from rougail.annotator.variable import Walk from rougail.annotator.variable import Walk
from rougail.output_doc.i18n import _ from rougail.output_doc.i18n import _
@ -36,7 +36,6 @@ from rougail.convert.object_model import (
IndexCalculation, IndexCalculation,
NamespaceCalculation, NamespaceCalculation,
CONVERT_OPTION, CONVERT_OPTION,
PROPERTY_ATTRIBUTE,
) )
@ -53,7 +52,9 @@ class Annotator(Walk):
if not objectspace.paths: if not objectspace.paths:
return return
self.objectspace = objectspace self.objectspace = objectspace
self.change_default_value = self.objectspace.rougailconfig["doc.change_default_value"] self.change_default_value = self.objectspace.rougailconfig[
"doc.change_default_value"
]
self.populate_family() self.populate_family()
self.populate_variable() self.populate_variable()
@ -70,7 +71,9 @@ class Annotator(Walk):
self.force_default_value_in_suffix_variable(family, family.dynamic) self.force_default_value_in_suffix_variable(family, family.dynamic)
else: else:
for value in family.dynamic: for value in family.dynamic:
self.force_default_value_in_suffix_variable(family, value, return_a_list=False) self.force_default_value_in_suffix_variable(
family, value, return_a_list=False
)
self.calculation_to_information( self.calculation_to_information(
family.path, family.path,
"dynamic", "dynamic",
@ -149,7 +152,11 @@ class Annotator(Walk):
variable.validators, variable.validators,
variable.version, variable.version,
) )
if self.change_default_value and variable.path in self.objectspace.leaders and not default: if (
self.change_default_value
and variable.path in self.objectspace.leaders
and not default
):
self.add_examples_values(variable) self.add_examples_values(variable)
self.convert_property(variable) self.convert_property(variable)

View file

@ -24,8 +24,7 @@ from re import compile
from tiramisu import Calculation, groups from tiramisu import Calculation, groups
from tiramisu.error import ConfigError, display_list, PropertiesOptionError from tiramisu.error import ConfigError, display_list, PropertiesOptionError
from rougail.tiramisu import display_xmlfiles, normalize_family from rougail.tiramisu import display_xmlfiles, normalize_family
from rougail.convert.object_model import PROPERTY_ATTRIBUTE from rougail.utils import undefined, PROPERTY_ATTRIBUTE
from rougail.utils import undefined
from .config import OutPuts from .config import OutPuts
from .i18n import _ from .i18n import _
@ -153,7 +152,7 @@ class RougailOutputDoc(Examples):
name = child.name(uncalculated=True) name = child.name(uncalculated=True)
path = child.path(uncalculated=True) path = child.path(uncalculated=True)
if not child.isoptiondescription(): if not child.isoptiondescription():
leader = self._parse_variable(child, leader, name, path, informations) leader = self.parse_variable(child, leader, name, path, informations)
else: else:
self._parse_family(child, informations, name, path) self._parse_family(child, informations, name, path)
return informations return informations
@ -213,20 +212,27 @@ class RougailOutputDoc(Examples):
else: else:
informations.update(sub_informations) informations.update(sub_informations)
def _parse_variable( def parse_variable(
self, variable, leader: dict, name: str, path: str, informations: dict self,
variable,
leader: dict,
name: str,
path: str,
informations: dict,
*,
only_one=False,
) -> Optional[dict]: ) -> Optional[dict]:
potential_leader = None potential_leader = None
if variable.isdynamic(): if variable.isdynamic():
# information is already set # information is already set
potential_leader = self._parse_variable_dynamic( potential_leader = self._parse_variable_dynamic(
variable, leader, name, path, informations variable, leader, name, path, informations, only_one
)
elif variable.isfollower() and variable.index():
self._parse_variable_follower_with_index(
variable, leader, path, informations
) )
else: else:
if variable.isfollower() and variable.index():
self._parse_variable_follower_with_index(
variable, leader, path, informations
)
potential_leader = self._parse_variable_normal( potential_leader = self._parse_variable_normal(
variable, leader, name, path, informations variable, leader, name, path, informations
) )
@ -239,6 +245,8 @@ class RougailOutputDoc(Examples):
) -> Optional[dict]: ) -> Optional[dict]:
if variable.isdynamic(): if variable.isdynamic():
sub_informations = self.dynamic_paths[path] sub_informations = self.dynamic_paths[path]
elif variable.isfollower() and variable.index():
sub_informations = informations[path]
else: else:
sub_informations = {} sub_informations = {}
self._populate_variable( self._populate_variable(
@ -262,10 +270,12 @@ class RougailOutputDoc(Examples):
) )
def _parse_variable_dynamic( def _parse_variable_dynamic(
self, variable, leader, name, path, informations self, variable, leader, name, path, informations, only_one
) -> None: ) -> None:
if path not in self.dynamic_paths:
self._populate_dynamic_variable(variable, path)
dynamic_variable = self.dynamic_paths[path] dynamic_variable = self.dynamic_paths[path]
if "type" in dynamic_variable: if (not only_one or path in informations) and "type" in dynamic_variable:
if self.example: if self.example:
dynamic_variable["example"].append( dynamic_variable["example"].append(
self._get_example(variable, dynamic_variable, leader) self._get_example(variable, dynamic_variable, leader)
@ -280,7 +290,8 @@ class RougailOutputDoc(Examples):
) )
if variable.isleader(): if variable.isleader():
return dynamic_variable return dynamic_variable
return None if not only_one:
return None
return self._parse_variable_normal(variable, leader, name, path, informations) return self._parse_variable_normal(variable, leader, name, path, informations)
def _get_family_type(self, family) -> str: def _get_family_type(self, family) -> str:
@ -340,7 +351,7 @@ class RougailOutputDoc(Examples):
variable, variable,
) )
if default is not None: if default is not None:
informations["default"] = default informations["default"] = {"name": _("Default"), "values": default}
self._parse_type( self._parse_type(
variable, variable,
informations, informations,
@ -365,7 +376,13 @@ class RougailOutputDoc(Examples):
if examples is None: if examples is None:
examples = variable.information.get("test", None) examples = variable.information.get("test", None)
if examples is not None: if examples is not None:
informations["examples"] = list(examples) if len(examples) == 1:
informations["examples"] = {"name": _("Example"), "values": examples[0]}
else:
informations["examples"] = {
"name": _("Examples"),
"values": list(examples),
}
def _populate( def _populate(
self, self,
@ -380,11 +397,12 @@ class RougailOutputDoc(Examples):
not obj.isoptiondescription() not obj.isoptiondescription()
or (self.support_namespace and obj.group_type() is not groups.namespace) or (self.support_namespace and obj.group_type() is not groups.namespace)
): ):
warning = _('No attribute "description" for "{0}" in {1}').format( if obj.isoptiondescription() or not obj.isfollower() or not obj.index():
obj.path(uncalculated=True), warning = _('No attribute "description" for "{0}" in {1}').format(
display_xmlfiles(obj.information.get("ymlfiles")), obj.path(uncalculated=True),
) display_xmlfiles(obj.information.get("ymlfiles")),
warn(warning) )
warn(warning)
else: else:
informations["description"] = self._convert_description(description, obj) informations["description"] = self._convert_description(description, obj)
help_ = obj.information.get("help", None) help_ = obj.information.get("help", None)
@ -403,8 +421,9 @@ class RougailOutputDoc(Examples):
return description return description
def _add_examples(self, variable, informations: dict, leader) -> None: def _add_examples(self, variable, informations: dict, leader) -> None:
example = self._get_example(variable, informations, leader) if not variable.index():
informations["example"] = [example] example = self._get_example(variable, informations, leader)
informations["example"] = [example]
informations["mandatory_without_value"] = "mandatory" in variable.property.get( informations["mandatory_without_value"] = "mandatory" in variable.property.get(
uncalculated=True uncalculated=True
) and ( ) and (
@ -413,18 +432,21 @@ class RougailOutputDoc(Examples):
) )
def _get_example(self, variable, informations: dict, leader): def _get_example(self, variable, informations: dict, leader):
example = informations.get("examples") example = informations.get("examples", {}).get("values")
if example is not None: if example is not None:
if isinstance(example, tuple): if isinstance(example, tuple):
example = list(example) example = list(example)
for prop in informations["properties"]: for prop in informations["properties"]:
if prop["type"] == "multiple": if prop["type"] == "multiple":
multi = True if not isinstance(example, list):
example = [example]
break break
else: else:
multi = False if isinstance(example, list):
if not multi: index = variable.index()
example = example[0] if index is None or len(example) - 1 >= index:
index = 0
example = example[index]
else: else:
if variable.information.get("fake_default", False): if variable.information.get("fake_default", False):
default = None default = None
@ -436,24 +458,29 @@ class RougailOutputDoc(Examples):
if default not in [None, []]: if default not in [None, []]:
example = default example = default
else: else:
example = self.convert_option.get( example = self.get_type_default_value(
variable.information.get("type"), {} variable, informations["properties"]
).get("example", None) )
if example is None:
example = "xxx"
for prop in informations["properties"]:
if prop["type"] == "multiple":
multi = True
break
else:
multi = False
if multi:
example = [example]
if leader is not None and variable.isfollower(): if leader is not None and variable.isfollower():
# len of leader is known, add "undefined" example, it will be modify latter with true value
example = [example] + [undefined] * (len(leader["example"][-1]) - 1) example = [example] + [undefined] * (len(leader["example"][-1]) - 1)
return example return example
def get_type_default_value(self, variable, properties):
example = self.convert_option.get(variable.information.get("type"), {}).get(
"example", None
)
if example is None:
example = "xxx"
for prop in properties:
if prop["type"] == "multiple":
multi = True
break
else:
multi = False
if multi:
example = [example]
return example
def _parse_type( def _parse_type(
self, self,
variable, variable,
@ -469,6 +496,7 @@ class RougailOutputDoc(Examples):
] ]
# extra parameters for types # extra parameters for types
option = variable.get() option = variable.get()
validators = []
for param, msg in doc_type["params"].items(): for param, msg in doc_type["params"].items():
value = option.impl_get_extra(f"_{param}") value = option.impl_get_extra(f"_{param}")
if value is None: if value is None:
@ -478,41 +506,49 @@ class RougailOutputDoc(Examples):
value = list(value) value = list(value)
if isinstance(value, list): if isinstance(value, list):
value = display_list(value, add_quote=True) value = display_list(value, add_quote=True)
informations.setdefault("validators", []).append(msg.format(value)) validators.append(msg.format(value))
# get validation information from annotator # get validation information from annotator
for name in variable.information.list(): for name in variable.information.list():
if not name.startswith("validators_calculation"): if not name.startswith("validators_calculation"):
continue continue
informations.setdefault("validators", []).extend( validators.extend(
self._to_string( self._to_string(
variable, variable,
"validators", "validators",
) )
) )
break break
if variable.information.get("type") == "regexp":
validators.append(
_('text based with regular expressions "{0}"').format(
variable.pattern()
)
)
if validators:
if len(validators) == 1:
key = _("Validator")
validators = validators[0]
else:
key = _("Validators")
informations["validators"] = {"name": key, "values": validators}
if variable.information.get("type") == "choice": if variable.information.get("type") == "choice":
choices = self._to_string(variable, "choice", do_not_raise=True) choices = self._to_string(variable, "choice", do_not_raise=True)
if choices is None: if choices is None:
choices = variable.value.list() choices = variable.value.list()
for idx, val in enumerate(choices): for idx, val in enumerate(choices):
if not isinstance(val, Calculation): if not isinstance(val, Calculation):
default = informations.get("default") default = informations.get("default", {}).get("values")
if default is not None and val == default: if default is not None and val == default:
choices[idx] = ( choices[idx] = (
str(val) str(val)
+ " " + " "
+ self.formater.bold("" + _("(default)")) + self.formater.bold("" + _("(default)"))
) )
informations["display_default"] = False informations["default_is_already_set"] = True
continue continue
choices[idx] = self._to_string(variable, "choice", f"_{idx}") choices[idx] = self._to_string(variable, "choice", f"_{idx}")
informations["choices"] = choices informations["choices"] = {"name": _("Choices"), "values": choices}
if variable.information.get("type") == "regexp":
informations.setdefault("validators", []).append(
_('text based with regular expressions "{0}"').format(
variable.pattern()
)
)
def _parse_properties( def _parse_properties(
self, self,
@ -604,14 +640,19 @@ class RougailOutputDoc(Examples):
values = calculation["value"] values = calculation["value"]
else: else:
values = _("depends on a calculation") values = _("depends on a calculation")
warning = _( if (
'"{0}" is a calculation for {1} but has no description in {2}' child.isoptiondescription()
).format( or not child.isfollower()
prop, or not child.index()
child.path(), ):
display_xmlfiles(child.information.get("ymlfiles")), warning = _(
) '"{0}" is a calculation for {1} but has no description in {2}'
warn(warning) ).format(
prop,
child.path(),
display_xmlfiles(child.information.get("ymlfiles")),
)
warn(warning)
elif calculation["type"] == "variable": elif calculation["type"] == "variable":
if prop in PROPERTY_ATTRIBUTE: if prop in PROPERTY_ATTRIBUTE:
variable_path, value, condition = calculation["value"] variable_path, value, condition = calculation["value"]

View file

@ -319,20 +319,27 @@ class CommonFormater:
second_col.append(self.stripped(help_)) second_col.append(self.stripped(help_))
if "validators" in informations: if "validators" in informations:
validators = informations["validators"] validators = informations["validators"]
if len(validators) == 1: if isinstance(validators["values"], list):
second_col.append(self.section(_("Validator"), validators[0])) values = self.list(validators["values"])
else: else:
second_col.append(self.section(_("Validators"), self.list(validators))) values = validators["values"]
second_col.append(self.section(validators["name"], values))
if "choices" in informations: if "choices" in informations:
second_col.append(self.section(_("Choices"), informations["choices"])) choices = informations["choices"]
if "default" in informations and informations.get("display_default", True): second_col.append(self.section(choices["name"], choices["values"]))
second_col.append(self.section(_("Default"), informations["default"])) if (
"default" in informations
and informations.get("default_is_already_set", False) is False
):
default = informations["default"]
second_col.append(self.section(default["name"], default["values"]))
if "examples" in informations: if "examples" in informations:
examples = informations["examples"] examples = informations["examples"]
if len(examples) == 1: if isinstance(examples["values"], list):
second_col.append(self.section(_("Example"), examples[0])) values = self.list(examples["values"])
else: else:
second_col.append(self.section(_("Examples"), examples)) values = examples["values"]
second_col.append(self.section(examples["name"], values))
second_col.extend(calculated_properties) second_col.extend(calculated_properties)
self.columns(second_col) self.columns(second_col)
return second_col return second_col

View file

@ -1,7 +1,10 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": "no", "default": {
"name": "Default",
"values": "no"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -28,7 +31,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "the value of var1.", "default": {
"name": "Default",
"values": "the value of var1."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,11 +1,14 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": [ "default": {
"no", "name": "Default",
"yes", "values": [
"maybe" "no",
], "yes",
"maybe"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -40,7 +43,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "the value of _.var1.", "default": {
"name": "Default",
"values": "the value of _.var1."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "depends on a calculation.", "default": {
"name": "Default",
"values": "depends on a calculation."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -27,7 +27,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "value of a variable!.", "default": {
"name": "Default",
"values": "value of a variable!."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -27,7 +27,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "value\nof\na\nvariable!.", "default": {
"name": "Default",
"values": "value\nof\na\nvariable!."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -23,9 +23,10 @@
"name": "multiple" "name": "multiple"
} }
], ],
"validators": [ "validators": {
"the domain name can be an IP" "name": "Validator",
], "values": "the domain name can be an IP"
},
"paths": [ "paths": [
"var1" "var1"
], ],
@ -38,7 +39,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "the value of the variable \"var1\".", "default": {
"name": "Default",
"values": "the value of the variable \"var1\"."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -61,9 +65,10 @@
"name": "multiple" "name": "multiple"
} }
], ],
"validators": [ "validators": {
"the domain name can be an IP" "name": "Validator",
], "values": "the domain name can be an IP"
},
"paths": [ "paths": [
"var2" "var2"
], ],

View file

@ -1,7 +1,10 @@
{ {
"without_type": { "without_type": {
"type": "variable", "type": "variable",
"default": "non", "default": {
"name": "Default",
"values": "non"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": true, "default": {
"name": "Default",
"values": true
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -28,7 +31,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": true, "default": {
"name": "Default",
"values": true
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -55,7 +61,10 @@
}, },
"var3": { "var3": {
"type": "variable", "type": "variable",
"default": true, "default": {
"name": "Default",
"values": true
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -82,7 +91,10 @@
}, },
"var4": { "var4": {
"type": "variable", "type": "variable",
"default": false, "default": {
"name": "Default",
"values": false
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -109,7 +121,10 @@
}, },
"var5": { "var5": {
"type": "variable", "type": "variable",
"default": false, "default": {
"name": "Default",
"values": false
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -136,7 +151,10 @@
}, },
"var6": { "var6": {
"type": "variable", "type": "variable",
"default": false, "default": {
"name": "Default",
"values": false
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": true, "default": {
"name": "Default",
"values": true
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -15,11 +15,14 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"choices": [ "choices": {
"a", "name": "Choices",
"b", "values": [
"c" "a",
], "b",
"c"
]
},
"paths": [ "paths": [
"var1" "var1"
], ],
@ -46,11 +49,14 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"choices": [ "choices": {
"a", "name": "Choices",
"b", "values": [
"c" "a",
], "b",
"c"
]
},
"paths": [ "paths": [
"var2" "var2"
], ],
@ -73,12 +79,15 @@
"name": "standard" "name": "standard"
} }
], ],
"choices": [ "choices": {
"a", "name": "Choices",
"b", "values": [
"c", "a",
null "b",
], "c",
null
]
},
"paths": [ "paths": [
"var3" "var3"
], ],
@ -101,11 +110,14 @@
"name": "standard" "name": "standard"
} }
], ],
"choices": [ "choices": {
null, "name": "Choices",
"b", "values": [
"c" null,
], "b",
"c"
]
},
"paths": [ "paths": [
"var4" "var4"
], ],
@ -118,7 +130,10 @@
}, },
"var5": { "var5": {
"type": "variable", "type": "variable",
"default": "a", "default": {
"name": "Default",
"values": "a"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -133,12 +148,15 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"display_default": false, "default_is_already_set": true,
"choices": [ "choices": {
"a ← (default)", "name": "Choices",
"b", "values": [
"c" "a ← (default)",
], "b",
"c"
]
},
"paths": [ "paths": [
"var5" "var5"
], ],
@ -151,7 +169,10 @@
}, },
"var6": { "var6": {
"type": "variable", "type": "variable",
"default": 1, "default": {
"name": "Default",
"values": 1
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -166,12 +187,15 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"display_default": false, "default_is_already_set": true,
"choices": [ "choices": {
"1 ← (default)", "name": "Choices",
2, "values": [
3 "1 ← (default)",
], 2,
3
]
},
"paths": [ "paths": [
"var6" "var6"
], ],

View file

@ -1,7 +1,10 @@
{ {
"var": { "var": {
"type": "variable", "type": "variable",
"default": 9, "default": {
"name": "Default",
"values": 9
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -16,7 +19,10 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"choices": "choices is 0 to 9.", "choices": {
"name": "Choices",
"values": "choices is 0 to 9."
},
"paths": [ "paths": [
"var" "var"
], ],

View file

@ -15,11 +15,14 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"choices": [ "choices": {
"a", "name": "Choices",
"b", "values": [
"c" "a",
], "b",
"c"
]
},
"paths": [ "paths": [
"var1" "var1"
], ],
@ -32,7 +35,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "the value of the variable \"var1\".", "default": {
"name": "Default",
"values": "the value of the variable \"var1\"."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -47,11 +53,14 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"choices": [ "choices": {
"a", "name": "Choices",
"b", "values": [
"c" "a",
], "b",
"c"
]
},
"paths": [ "paths": [
"var2" "var2"
], ],

View file

@ -1,11 +1,14 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": [ "default": {
"a", "name": "Default",
"b", "values": [
"c" "a",
], "b",
"c"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -40,7 +43,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "a", "default": {
"name": "Default",
"values": "a"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -55,7 +61,10 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"choices": "the value of the variable \"var1\".", "choices": {
"name": "Choices",
"values": "the value of the variable \"var1\"."
},
"paths": [ "paths": [
"var2" "var2"
], ],

View file

@ -1,11 +1,14 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": [ "default": {
"a", "name": "Default",
"b", "values": [
"c" "a",
], "b",
"c"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -40,7 +43,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "a", "default": {
"name": "Default",
"values": "a"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -55,7 +61,10 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"choices": "the value of the variable \"var1\".", "choices": {
"name": "Choices",
"values": "the value of the variable \"var1\"."
},
"paths": [ "paths": [
"var2" "var2"
], ],
@ -68,7 +77,10 @@
}, },
"var3": { "var3": {
"type": "variable", "type": "variable",
"default": "the value of the variable \"var2\".", "default": {
"name": "Default",
"values": "the value of the variable \"var2\"."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -83,7 +95,10 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"choices": "the value of the variable \"var1\".", "choices": {
"name": "Choices",
"values": "the value of the variable \"var1\"."
},
"paths": [ "paths": [
"var3" "var3"
], ],

View file

@ -1,11 +1,14 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": [ "default": {
"a", "name": "Default",
"b", "values": [
"c" "a",
], "b",
"c"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -40,7 +43,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "a", "default": {
"name": "Default",
"values": "a"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -55,7 +61,10 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"choices": "the value of the variable \"var1\".", "choices": {
"name": "Choices",
"values": "the value of the variable \"var1\"."
},
"paths": [ "paths": [
"var2" "var2"
], ],
@ -85,7 +94,10 @@
"children": { "children": {
"family.var3": { "family.var3": {
"type": "variable", "type": "variable",
"default": "the value of the variable \"var2\".", "default": {
"name": "Default",
"values": "the value of the variable \"var2\"."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -100,7 +112,10 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"choices": "the value of the variable \"family.var1\".", "choices": {
"name": "Choices",
"values": "the value of the variable \"family.var1\"."
},
"paths": [ "paths": [
"family.var3" "family.var3"
], ],

View file

@ -27,7 +27,10 @@
}, },
"custom2": { "custom2": {
"type": "variable", "type": "variable",
"default": "value", "default": {
"name": "Default",
"values": "value"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": "my.domain.name", "default": {
"name": "Default",
"values": "my.domain.name"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": "my.domain.name", "default": {
"name": "Default",
"values": "my.domain.name"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -16,9 +19,10 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"validators": [ "validators": {
"the domain name can be an IP" "name": "Validator",
], "values": "the domain name can be an IP"
},
"paths": [ "paths": [
"variable" "variable"
], ],

View file

@ -1,7 +1,10 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": 0.0, "default": {
"name": "Default",
"values": 0.0
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -28,7 +31,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": 0.0, "default": {
"name": "Default",
"values": 0.0
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -55,7 +61,10 @@
}, },
"var3": { "var3": {
"type": "variable", "type": "variable",
"default": 0.0, "default": {
"name": "Default",
"values": 0.0
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -82,7 +91,10 @@
}, },
"var4": { "var4": {
"type": "variable", "type": "variable",
"default": 10.1, "default": {
"name": "Default",
"values": 10.1
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -109,7 +121,10 @@
}, },
"var5": { "var5": {
"type": "variable", "type": "variable",
"default": 10.1, "default": {
"name": "Default",
"values": 10.1
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -136,7 +151,10 @@
}, },
"var6": { "var6": {
"type": "variable", "type": "variable",
"default": 10.1, "default": {
"name": "Default",
"values": 10.1
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": 0, "default": {
"name": "Default",
"values": 0
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -28,7 +31,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": 0, "default": {
"name": "Default",
"values": 0
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -55,7 +61,10 @@
}, },
"var3": { "var3": {
"type": "variable", "type": "variable",
"default": 0, "default": {
"name": "Default",
"values": 0
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -82,7 +91,10 @@
}, },
"var4": { "var4": {
"type": "variable", "type": "variable",
"default": 10, "default": {
"name": "Default",
"values": 10
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -109,7 +121,10 @@
}, },
"var5": { "var5": {
"type": "variable", "type": "variable",
"default": 10, "default": {
"name": "Default",
"values": 10
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -136,7 +151,10 @@
}, },
"var6": { "var6": {
"type": "variable", "type": "variable",
"default": 10, "default": {
"name": "Default",
"values": 10
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -15,11 +15,14 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"validators": [ "validators": {
"well-known ports (1 to 1023) are allowed", "name": "Validators",
"registred ports (1024 to 49151) are allowed", "values": [
"private ports (greater than 49152) are allowed" "well-known ports (1 to 1023) are allowed",
], "registred ports (1024 to 49151) are allowed",
"private ports (greater than 49152) are allowed"
]
},
"paths": [ "paths": [
"variable1" "variable1"
], ],
@ -32,7 +35,10 @@
}, },
"variable2": { "variable2": {
"type": "variable", "type": "variable",
"default": "8080", "default": {
"name": "Default",
"values": "8080"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -47,11 +53,14 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"validators": [ "validators": {
"well-known ports (1 to 1023) are allowed", "name": "Validators",
"registred ports (1024 to 49151) are allowed", "values": [
"private ports (greater than 49152) are allowed" "well-known ports (1 to 1023) are allowed",
], "registred ports (1024 to 49151) are allowed",
"private ports (greater than 49152) are allowed"
]
},
"paths": [ "paths": [
"variable2" "variable2"
], ],
@ -64,7 +73,10 @@
}, },
"variable3": { "variable3": {
"type": "variable", "type": "variable",
"default": "8080", "default": {
"name": "Default",
"values": "8080"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -79,11 +91,14 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"validators": [ "validators": {
"well-known ports (1 to 1023) are allowed", "name": "Validators",
"registred ports (1024 to 49151) are allowed", "values": [
"private ports (greater than 49152) are allowed" "well-known ports (1 to 1023) are allowed",
], "registred ports (1024 to 49151) are allowed",
"private ports (greater than 49152) are allowed"
]
},
"paths": [ "paths": [
"variable3" "variable3"
], ],

View file

@ -1,7 +1,10 @@
{ {
"var": { "var": {
"type": "variable", "type": "variable",
"default": "#a1a1a1", "default": {
"name": "Default",
"values": "#a1a1a1"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -16,9 +19,10 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"validators": [ "validators": {
"text based with regular expressions \"^#(?:[0-9a-f]{3}){1,2}$\"" "name": "Validator",
], "values": "text based with regular expressions \"^#(?:[0-9a-f]{3}){1,2}$\""
},
"paths": [ "paths": [
"var" "var"
], ],
@ -28,9 +32,12 @@
"descriptions": [ "descriptions": [
"A first variable." "A first variable."
], ],
"examples": [ "examples": {
"#b1b1b1", "name": "Examples",
"#b2b2b2" "values": [
] "#b1b1b1",
"#b2b2b2"
]
}
} }
} }

View file

@ -1,7 +1,10 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": "#a1a1a1", "default": {
"name": "Default",
"values": "#a1a1a1"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -16,9 +19,10 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"validators": [ "validators": {
"text based with regular expressions \"^#(?:[0-9a-f]{3}){1,2}$\"" "name": "Validator",
], "values": "text based with regular expressions \"^#(?:[0-9a-f]{3}){1,2}$\""
},
"paths": [ "paths": [
"var1" "var1"
], ],
@ -28,14 +32,20 @@
"descriptions": [ "descriptions": [
"A first variable." "A first variable."
], ],
"examples": [ "examples": {
"#b1b1b1", "name": "Examples",
"#b2b2b2" "values": [
] "#b1b1b1",
"#b2b2b2"
]
}
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "the value of the variable \"var1\".", "default": {
"name": "Default",
"values": "the value of the variable \"var1\"."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -50,9 +60,10 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"validators": [ "validators": {
"text based with regular expressions \"^#(?:[0-9a-f]{3}){1,2}$\"" "name": "Validator",
], "values": "text based with regular expressions \"^#(?:[0-9a-f]{3}){1,2}$\""
},
"paths": [ "paths": [
"var2" "var2"
], ],
@ -62,9 +73,12 @@
"descriptions": [ "descriptions": [
"A second variable." "A second variable."
], ],
"examples": [ "examples": {
"#b2b1b1", "name": "Examples",
"#b3b2b2" "values": [
] "#b2b1b1",
"#b3b2b2"
]
}
} }
} }

View file

@ -27,7 +27,10 @@
}, },
"secret2": { "secret2": {
"type": "variable", "type": "variable",
"default": "value", "default": {
"name": "Default",
"values": "value"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -15,9 +15,10 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"validators": [ "validators": {
"minimum length for the secret is 10 characters" "name": "Validator",
], "values": "minimum length for the secret is 10 characters"
},
"paths": [ "paths": [
"secret1" "secret1"
], ],
@ -30,7 +31,10 @@
}, },
"secret2": { "secret2": {
"type": "variable", "type": "variable",
"default": "value", "default": {
"name": "Default",
"values": "value"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -45,10 +49,13 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"validators": [ "validators": {
"maximum length for the secret is 10 characters", "name": "Validators",
"forbidden characters: \"$\" and \"^\"" "values": [
], "maximum length for the secret is 10 characters",
"forbidden characters: \"$\" and \"^\""
]
},
"paths": [ "paths": [
"secret2" "secret2"
], ],
@ -61,7 +68,10 @@
}, },
"secret3": { "secret3": {
"type": "variable", "type": "variable",
"default": "value", "default": {
"name": "Default",
"values": "value"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -76,10 +86,13 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"validators": [ "validators": {
"maximum length for the secret is 10 characters", "name": "Validators",
"forbidden characters: \"$\"" "values": [
], "maximum length for the secret is 10 characters",
"forbidden characters: \"$\""
]
},
"paths": [ "paths": [
"secret3" "secret3"
], ],

View file

@ -79,7 +79,10 @@
}, },
"var4": { "var4": {
"type": "variable", "type": "variable",
"default": "value", "default": {
"name": "Default",
"values": "value"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -106,7 +109,10 @@
}, },
"var5": { "var5": {
"type": "variable", "type": "variable",
"default": "value", "default": {
"name": "Default",
"values": "value"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -133,7 +139,10 @@
}, },
"var6": { "var6": {
"type": "variable", "type": "variable",
"default": "value", "default": {
"name": "Default",
"values": "value"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var": { "var": {
"type": "variable", "type": "variable",
"default": "quote'", "default": {
"name": "Default",
"values": "quote'"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -16,12 +19,15 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"display_default": false, "default_is_already_set": true,
"choices": [ "choices": {
"quote' ← (default)", "name": "Choices",
"quote\"", "values": [
"quote\"'" "quote' ← (default)",
], "quote\"",
"quote\"'"
]
},
"paths": [ "paths": [
"var" "var"
], ],

View file

@ -1,7 +1,10 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": "quote\"", "default": {
"name": "Default",
"values": "quote\""
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": "quote'\"", "default": {
"name": "Default",
"values": "quote'\""
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": "quote\\\"\\'", "default": {
"name": "Default",
"values": "quote\\\"\\'"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": "quote'", "default": {
"name": "Default",
"values": "quote'"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": "get information test_information.", "default": {
"name": "Default",
"values": "get information test_information."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -24,13 +24,17 @@
"descriptions": [ "descriptions": [
"The first variable." "The first variable."
], ],
"examples": [ "examples": {
"test" "name": "Example",
] "values": "test"
}
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "value", "default": {
"name": "Default",
"values": "value"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -54,9 +58,10 @@
"descriptions": [ "descriptions": [
"The second variable." "The second variable."
], ],
"examples": [ "examples": {
"test" "name": "Example",
] "values": "test"
}
}, },
"var3": { "var3": {
"type": "variable", "type": "variable",
@ -83,10 +88,13 @@
"descriptions": [ "descriptions": [
"The third variable." "The third variable."
], ],
"examples": [ "examples": {
"test1", "name": "Examples",
"test2" "values": [
] "test1",
"test2"
]
}
}, },
"var4": { "var4": {
"type": "variable", "type": "variable",
@ -109,15 +117,21 @@
"descriptions": [ "descriptions": [
"The forth variable." "The forth variable."
], ],
"examples": [ "examples": {
null, "name": "Examples",
"test1", "values": [
"test2" null,
] "test1",
"test2"
]
}
}, },
"var5": { "var5": {
"type": "variable", "type": "variable",
"default": true, "default": {
"name": "Default",
"values": true
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -141,9 +155,10 @@
"descriptions": [ "descriptions": [
"The fifth variable." "The fifth variable."
], ],
"examples": [ "examples": {
false "name": "Example",
] "values": false
}
}, },
"var6": { "var6": {
"type": "variable", "type": "variable",
@ -178,9 +193,12 @@
"descriptions": [ "descriptions": [
"The sixth variable." "The sixth variable."
], ],
"examples": [ "examples": {
"test1", "name": "Examples",
"test2" "values": [
] "test1",
"test2"
]
}
} }
} }

View file

@ -23,10 +23,13 @@
"name": "multiple" "name": "multiple"
} }
], ],
"choices": [ "choices": {
"val1", "name": "Choices",
"val2" "values": [
], "val1",
"val2"
]
},
"paths": [ "paths": [
"variable1" "variable1"
], ],
@ -57,10 +60,13 @@
"name": "multiple" "name": "multiple"
} }
], ],
"choices": [ "choices": {
"val1", "name": "Choices",
"val2" "values": [
], "val1",
"val2"
]
},
"paths": [ "paths": [
"variable2" "variable2"
], ],

View file

@ -1,7 +1,10 @@
{ {
"source_variable_1": { "source_variable_1": {
"type": "variable", "type": "variable",
"default": "val1", "default": {
"name": "Default",
"values": "val1"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -28,7 +31,10 @@
}, },
"source_variable_2": { "source_variable_2": {
"type": "variable", "type": "variable",
"default": "val2", "default": {
"name": "Default",
"values": "val2"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -55,7 +61,10 @@
}, },
"my_variable": { "my_variable": {
"type": "variable", "type": "variable",
"default": "val1", "default": {
"name": "Default",
"values": "val1"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -70,10 +79,13 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"choices": [ "choices": {
"the value of the variable \"source_variable_1\".", "name": "Choices",
"the value of the variable \"source_variable_2\"." "values": [
], "the value of the variable \"source_variable_1\".",
"the value of the variable \"source_variable_2\"."
]
},
"paths": [ "paths": [
"my_variable" "my_variable"
], ],

View file

@ -1,7 +1,10 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": "concat all parameters.", "default": {
"name": "Default",
"values": "concat all parameters."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var": { "var": {
"type": "variable", "type": "variable",
"default": "returns the information.", "default": {
"name": "Default",
"values": "returns the information."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -27,7 +27,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "depends on a calculation.", "default": {
"name": "Default",
"values": "depends on a calculation."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"my_variable": { "my_variable": {
"type": "variable", "type": "variable",
"default": "val1", "default": {
"name": "Default",
"values": "val1"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -25,9 +28,12 @@
}, },
"my_calculated_variable": { "my_calculated_variable": {
"type": "variable", "type": "variable",
"default": [ "default": {
"the value of the variable \"my_variable\"." "name": "Default",
], "values": [
"the value of the variable \"my_variable\"."
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"my_variable": { "my_variable": {
"type": "variable", "type": "variable",
"default": "val1", "default": {
"name": "Default",
"values": "val1"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -25,9 +28,12 @@
}, },
"my_calculated_variable": { "my_calculated_variable": {
"type": "variable", "type": "variable",
"default": [ "default": {
"the value of the variable \"my_variable\"." "name": "Default",
], "values": [
"the value of the variable \"my_variable\"."
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,10 +1,13 @@
{ {
"my_variable": { "my_variable": {
"type": "variable", "type": "variable",
"default": [ "default": {
"val1", "name": "Default",
"val2" "values": [
], "val1",
"val2"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -36,7 +39,10 @@
}, },
"my_calculated_variable": { "my_calculated_variable": {
"type": "variable", "type": "variable",
"default": "the value of the variable \"my_variable\".", "default": {
"name": "Default",
"values": "the value of the variable \"my_variable\"."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": "returns a value.", "default": {
"name": "Default",
"values": "returns a value."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -24,7 +27,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "no", "default": {
"name": "Default",
"values": "no"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -27,7 +27,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "the value of the information \"test_information\" of the variable \"var1\".", "default": {
"name": "Default",
"values": "the value of the information \"test_information\" of the variable \"var1\"."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -27,7 +27,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "the value of the information \"test_information\" of the variable \"var1\".", "default": {
"name": "Default",
"values": "the value of the information \"test_information\" of the variable \"var1\"."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var": { "var": {
"type": "variable", "type": "variable",
"default": 9, "default": {
"name": "Default",
"values": 9
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -16,7 +19,10 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"choices": "choice for 0 to 9.", "choices": {
"name": "Choices",
"values": "choice for 0 to 9."
},
"paths": [ "paths": [
"var" "var"
], ],

View file

@ -1,9 +1,12 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": [ "default": {
true "name": "Default",
], "values": [
true
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -38,9 +41,12 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": [ "default": {
true "name": "Default",
], "values": [
true
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -75,9 +81,12 @@
}, },
"var3": { "var3": {
"type": "variable", "type": "variable",
"default": [ "default": {
true "name": "Default",
], "values": [
true
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -112,9 +121,12 @@
}, },
"var4": { "var4": {
"type": "variable", "type": "variable",
"default": [ "default": {
false "name": "Default",
], "values": [
false
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -149,9 +161,12 @@
}, },
"var5": { "var5": {
"type": "variable", "type": "variable",
"default": [ "default": {
false "name": "Default",
], "values": [
false
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -186,9 +201,12 @@
}, },
"var6": { "var6": {
"type": "variable", "type": "variable",
"default": [ "default": {
false "name": "Default",
], "values": [
false
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -223,9 +241,12 @@
}, },
"var7": { "var7": {
"type": "variable", "type": "variable",
"default": [ "default": {
true "name": "Default",
], "values": [
true
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -260,9 +281,12 @@
}, },
"var8": { "var8": {
"type": "variable", "type": "variable",
"default": [ "default": {
true "name": "Default",
], "values": [
true
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -35,9 +35,12 @@
}, },
"custom2": { "custom2": {
"type": "variable", "type": "variable",
"default": [ "default": {
"value" "name": "Default",
], "values": [
"value"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,9 +1,12 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": [ "default": {
0.0 "name": "Default",
], "values": [
0.0
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -38,9 +41,12 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": [ "default": {
0.0 "name": "Default",
], "values": [
0.0
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -75,9 +81,12 @@
}, },
"var3": { "var3": {
"type": "variable", "type": "variable",
"default": [ "default": {
0.0 "name": "Default",
], "values": [
0.0
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -112,9 +121,12 @@
}, },
"var4": { "var4": {
"type": "variable", "type": "variable",
"default": [ "default": {
10.1 "name": "Default",
], "values": [
10.1
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -149,9 +161,12 @@
}, },
"var5": { "var5": {
"type": "variable", "type": "variable",
"default": [ "default": {
10.1 "name": "Default",
], "values": [
10.1
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -186,9 +201,12 @@
}, },
"var6": { "var6": {
"type": "variable", "type": "variable",
"default": [ "default": {
10.1 "name": "Default",
], "values": [
10.1
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -223,9 +241,12 @@
}, },
"var7": { "var7": {
"type": "variable", "type": "variable",
"default": [ "default": {
0.0 "name": "Default",
], "values": [
0.0
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -260,9 +281,12 @@
}, },
"var8": { "var8": {
"type": "variable", "type": "variable",
"default": [ "default": {
0.0 "name": "Default",
], "values": [
0.0
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,9 +1,12 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": [ "default": {
0 "name": "Default",
], "values": [
0
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -38,9 +41,12 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": [ "default": {
0 "name": "Default",
], "values": [
0
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -75,9 +81,12 @@
}, },
"var3": { "var3": {
"type": "variable", "type": "variable",
"default": [ "default": {
0 "name": "Default",
], "values": [
0
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -112,9 +121,12 @@
}, },
"var4": { "var4": {
"type": "variable", "type": "variable",
"default": [ "default": {
10 "name": "Default",
], "values": [
10
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -149,9 +161,12 @@
}, },
"var5": { "var5": {
"type": "variable", "type": "variable",
"default": [ "default": {
10 "name": "Default",
], "values": [
10
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -186,9 +201,12 @@
}, },
"var6": { "var6": {
"type": "variable", "type": "variable",
"default": [ "default": {
10 "name": "Default",
], "values": [
10
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -223,9 +241,12 @@
}, },
"var7": { "var7": {
"type": "variable", "type": "variable",
"default": [ "default": {
0 "name": "Default",
], "values": [
0
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -260,9 +281,12 @@
}, },
"var8": { "var8": {
"type": "variable", "type": "variable",
"default": [ "default": {
0 "name": "Default",
], "values": [
0
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,10 +1,13 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": [ "default": {
"value", "name": "Default",
null "values": [
], "value",
null
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -103,9 +103,12 @@
}, },
"var4": { "var4": {
"type": "variable", "type": "variable",
"default": [ "default": {
"value" "name": "Default",
], "values": [
"value"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -140,9 +143,12 @@
}, },
"var5": { "var5": {
"type": "variable", "type": "variable",
"default": [ "default": {
"value" "name": "Default",
], "values": [
"value"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -177,9 +183,12 @@
}, },
"var6": { "var6": {
"type": "variable", "type": "variable",
"default": [ "default": {
"value" "name": "Default",
], "values": [
"value"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -214,9 +223,12 @@
}, },
"var7": { "var7": {
"type": "variable", "type": "variable",
"default": [ "default": {
"value" "name": "Default",
], "values": [
"value"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -251,9 +263,12 @@
}, },
"var8": { "var8": {
"type": "variable", "type": "variable",
"default": [ "default": {
"value" "name": "Default",
], "values": [
"value"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,9 +1,12 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": [ "default": {
"quote\"" "name": "Default",
], "values": [
"quote\""
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,9 +1,12 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": [ "default": {
"quote'\"" "name": "Default",
], "values": [
"quote'\""
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,9 +1,12 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": [ "default": {
"quote'" "name": "Default",
], "values": [
"quote'"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": "get information test_information.", "default": {
"name": "Default",
"values": "get information test_information."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,11 +1,14 @@
{ {
"variable1": { "variable1": {
"type": "variable", "type": "variable",
"default": [ "default": {
"a", "name": "Default",
"b", "values": [
"c" "a",
], "b",
"c"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -54,7 +57,10 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"choices": "the value of the variable \"variable1\".", "choices": {
"name": "Choices",
"values": "the value of the variable \"variable1\"."
},
"paths": [ "paths": [
"variable2" "variable2"
], ],

View file

@ -1,7 +1,10 @@
{ {
"int": { "int": {
"type": "variable", "type": "variable",
"default": 10, "default": {
"name": "Default",
"values": 10
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -16,10 +19,13 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"validators": [ "validators": {
"the minimum value is 0", "name": "Validators",
"the maximum value is 100" "values": [
], "the minimum value is 0",
"the maximum value is 100"
]
},
"paths": [ "paths": [
"int" "int"
], ],

View file

@ -1,7 +1,10 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": "no", "default": {
"name": "Default",
"values": "no"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": "no", "default": {
"name": "Default",
"values": "no"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -28,7 +31,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "the value of the variable \"var1\".", "default": {
"name": "Default",
"values": "the value of the variable \"var1\"."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": "no", "default": {
"name": "Default",
"values": "no"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -28,7 +31,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "the value is always yes.", "default": {
"name": "Default",
"values": "the value is always yes."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": "value", "default": {
"name": "Default",
"values": "value"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -59,7 +62,10 @@
}, },
"var3": { "var3": {
"type": "variable", "type": "variable",
"default": "depends on a calculation.", "default": {
"name": "Default",
"values": "depends on a calculation."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": "value", "default": {
"name": "Default",
"values": "value"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -59,7 +62,10 @@
}, },
"var3": { "var3": {
"type": "variable", "type": "variable",
"default": "depends on a calculation.", "default": {
"name": "Default",
"values": "depends on a calculation."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var3": { "var3": {
"type": "variable", "type": "variable",
"default": "depends on a calculation.", "default": {
"name": "Default",
"values": "depends on a calculation."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -27,7 +27,10 @@
}, },
"var3": { "var3": {
"type": "variable", "type": "variable",
"default": "depends on a calculation.", "default": {
"name": "Default",
"values": "depends on a calculation."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": "value", "default": {
"name": "Default",
"values": "value"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": "value", "default": {
"name": "Default",
"values": "value"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"condition": { "condition": {
"type": "variable", "type": "variable",
"default": "no", "default": {
"name": "Default",
"values": "no"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"condition": { "condition": {
"type": "variable", "type": "variable",
"default": false, "default": {
"name": "Default",
"values": false
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"condition": { "condition": {
"type": "variable", "type": "variable",
"default": true, "default": {
"name": "Default",
"values": true
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"condition": { "condition": {
"type": "variable", "type": "variable",
"default": "yes", "default": {
"name": "Default",
"values": "yes"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"condition": { "condition": {
"type": "variable", "type": "variable",
"default": "yes", "default": {
"name": "Default",
"values": "yes"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"condition": { "condition": {
"type": "variable", "type": "variable",
"default": false, "default": {
"name": "Default",
"values": false
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -15,9 +15,10 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"validators": [ "validators": {
"the max value is 100." "name": "Validator",
], "values": "the max value is 100."
},
"paths": [ "paths": [
"int" "int"
], ],

View file

@ -1,7 +1,10 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": "oui", "default": {
"name": "Default",
"values": "oui"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -16,9 +19,10 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"validators": [ "validators": {
"var1 must be different than var2." "name": "Validator",
], "values": "var1 must be different than var2."
},
"paths": [ "paths": [
"var1" "var1"
], ],
@ -28,13 +32,17 @@
"descriptions": [ "descriptions": [
"A first variable." "A first variable."
], ],
"examples": [ "examples": {
"another_value" "name": "Example",
] "values": "another_value"
}
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "no", "default": {
"name": "Default",
"values": "no"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,10 +1,13 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": [ "default": {
"no", "name": "Default",
"yes" "values": [
], "no",
"yes"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -27,9 +30,10 @@
"name": "multiple" "name": "multiple"
} }
], ],
"validators": [ "validators": {
"check length is less than 10." "name": "Validator",
], "values": "check length is less than 10."
},
"paths": [ "paths": [
"var1" "var1"
], ],

View file

@ -1,10 +1,13 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": [ "default": {
"no", "name": "Default",
"yes" "values": [
], "no",
"yes"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -27,9 +30,10 @@
"name": "multiple" "name": "multiple"
} }
], ],
"validators": [ "validators": {
"check length is less than 3." "name": "Validator",
], "values": "check length is less than 3."
},
"paths": [ "paths": [
"var1" "var1"
], ],
@ -39,9 +43,12 @@
"descriptions": [ "descriptions": [
"A second variable." "A second variable."
], ],
"examples": [ "examples": {
"val1", "name": "Examples",
"val2" "values": [
] "val1",
"val2"
]
}
} }
} }

View file

@ -1,11 +1,14 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": [ "default": {
0, "name": "Default",
1, "values": [
2 0,
], 1,
2
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -28,9 +31,10 @@
"name": "multiple" "name": "multiple"
} }
], ],
"validators": [ "validators": {
"value must be equal to index." "name": "Validator",
], "values": "value must be equal to index."
},
"paths": [ "paths": [
"var1" "var1"
], ],
@ -40,8 +44,9 @@
"descriptions": [ "descriptions": [
"A second variable." "A second variable."
], ],
"examples": [ "examples": {
0 "name": "Example",
] "values": 0
}
} }
} }

View file

@ -1,9 +1,12 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": [ "default": {
"non" "name": "Default",
], "values": [
"non"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,9 +1,12 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": [ "default": {
"non" "name": "Default",
], "values": [
"non"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var": { "var": {
"type": "variable", "type": "variable",
"default": "no", "default": {
"name": "Default",
"values": "no"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": "no", "default": {
"name": "Default",
"values": "no"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -28,7 +31,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "yes", "default": {
"name": "Default",
"values": "yes"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": "returns yes.", "default": {
"name": "Default",
"values": "returns yes."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -15,10 +15,13 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"choices": [ "choices": {
"a", "name": "Choices",
"b" "values": [
], "a",
"b"
]
},
"paths": [ "paths": [
"variable" "variable"
], ],

View file

@ -1,7 +1,10 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": "yes", "default": {
"name": "Default",
"values": "yes"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,9 +1,12 @@
{ {
"variable": { "variable": {
"type": "variable", "type": "variable",
"default": [ "default": {
"non" "name": "Default",
], "values": [
"non"
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"condition": { "condition": {
"type": "variable", "type": "variable",
"default": "no", "default": {
"name": "Default",
"values": "no"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": "no", "default": {
"name": "Default",
"values": "no"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -25,13 +28,17 @@
"descriptions": [ "descriptions": [
"A first variable." "A first variable."
], ],
"examples": [ "examples": {
"test1" "name": "Example",
] "values": "test1"
}
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "non", "default": {
"name": "Default",
"values": "non"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -55,9 +62,10 @@
"descriptions": [ "descriptions": [
"A second variable." "A second variable."
], ],
"examples": [ "examples": {
"test1" "name": "Example",
] "values": "test1"
}
}, },
"var3": { "var3": {
"type": "variable", "type": "variable",

View file

@ -1,7 +1,10 @@
{ {
"var": { "var": {
"type": "variable", "type": "variable",
"default": "c", "default": {
"name": "Default",
"values": "c"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -16,11 +19,14 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"display_default": false, "default_is_already_set": true,
"choices": [ "choices": {
"a", "name": "Choices",
"c ← (default)" "values": [
], "a",
"c ← (default)"
]
},
"paths": [ "paths": [
"var" "var"
], ],

View file

@ -1,7 +1,10 @@
{ {
"var1": { "var1": {
"type": "variable", "type": "variable",
"default": "no", "default": {
"name": "Default",
"values": "no"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -28,7 +31,10 @@
}, },
"var2": { "var2": {
"type": "variable", "type": "variable",
"default": "no", "default": {
"name": "Default",
"values": "no"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -55,7 +61,10 @@
}, },
"var3": { "var3": {
"type": "variable", "type": "variable",
"default": "yes", "default": {
"name": "Default",
"values": "yes"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -70,9 +79,10 @@
"name": "mandatory" "name": "mandatory"
} }
], ],
"validators": [ "validators": {
"var3 must be different than var2." "name": "Validator",
], "values": "var3 must be different than var2."
},
"paths": [ "paths": [
"var3" "var3"
], ],
@ -82,8 +92,9 @@
"descriptions": [ "descriptions": [
"A third variable." "A third variable."
], ],
"examples": [ "examples": {
"yes" "name": "Example",
] "values": "yes"
}
} }
} }

View file

@ -44,7 +44,10 @@
}, },
"family.var2": { "family.var2": {
"type": "variable", "type": "variable",
"default": "the value of the information \"test_information\" of the variable \"family\".", "default": {
"name": "Default",
"values": "the value of the information \"test_information\" of the variable \"family\"."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -68,9 +68,10 @@
"descriptions": [ "descriptions": [
"A second variable." "A second variable."
], ],
"examples": [ "examples": {
"string6" "name": "Example",
] "values": "string6"
}
}, },
"subfamily": { "subfamily": {
"type": "family", "type": "family",
@ -92,10 +93,13 @@
"children": { "children": {
"family.subfamily.variable": { "family.subfamily.variable": {
"type": "variable", "type": "variable",
"default": [ "default": {
"the value of the variable \"var1\".", "name": "Default",
"the value of the variable \"family.var2\"." "values": [
], "the value of the variable \"var1\".",
"the value of the variable \"family.var2\"."
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -152,7 +156,10 @@
"children": { "children": {
"family2.var2": { "family2.var2": {
"type": "variable", "type": "variable",
"default": "the value of the variable \"family.var2\".", "default": {
"name": "Default",
"values": "the value of the variable \"family.var2\"."
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -179,7 +186,10 @@
}, },
"family2.var3": { "family2.var3": {
"type": "variable", "type": "variable",
"default": "string4", "default": {
"name": "Default",
"values": "string4"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",
@ -200,9 +210,10 @@
"names": [ "names": [
"var3" "var3"
], ],
"examples": [ "examples": {
"string5" "name": "Example",
] "values": "string5"
}
}, },
"subfamily": { "subfamily": {
"type": "family", "type": "family",
@ -224,11 +235,14 @@
"children": { "children": {
"family2.subfamily.variable": { "family2.subfamily.variable": {
"type": "variable", "type": "variable",
"default": [ "default": {
"the value of the variable \"var1\".", "name": "Default",
"the value of the variable \"family.var2\".", "values": [
"the value of the variable \"family2.var3\"." "the value of the variable \"var1\".",
], "the value of the variable \"family.var2\".",
"the value of the variable \"family2.var3\"."
]
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"condition": { "condition": {
"type": "variable", "type": "variable",
"default": "no", "default": {
"name": "Default",
"values": "no"
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

View file

@ -1,7 +1,10 @@
{ {
"condition": { "condition": {
"type": "variable", "type": "variable",
"default": true, "default": {
"name": "Default",
"values": true
},
"properties": [ "properties": [
{ {
"type": "type", "type": "type",

Some files were not shown because too many files have changed in this diff Show more