• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.0RC1
    • 2.0.0 M3
    • None

      Il faudrait pouvoir spécifier des schémas XSD lors de chargement de conf.

      Par exemple

      <composant class="" role="" config="" configschema="">...</composant>

      Au mieux il faudrait aussi pouvoir le vérifier dans le cas d'une conf intégrée si on voulait.

          [RUNTIME-252] Configuration et schéma

          isn't it already done ?

          Cédric Damioli added a comment - isn't it already done ?

          Because we can have multiple extensions which share the same kind of configuration
          and therefore the same schema, it will be more friendly to only declare the schema once.

          A possibility to do that is to use a META-INF/ametys.schemas with the following format:

          http\://www.ametys.org/schema/ribbon/ribbon.xsd=org/ametys/ribbon/ribbon.xsd
          http\://www.ametys.org/schema/ribbon/ribbon2.xsd=org/ametys/ribbon/ribbon2.xsd
          

          This schema can also be used for internal configuration (inside plugin.xml).
          Using a given namespace we can benefit from Eclipse completion and XML reader validation.

          Sébastien Launay (Inactive) added a comment - Because we can have multiple extensions which share the same kind of configuration and therefore the same schema, it will be more friendly to only declare the schema once. A possibility to do that is to use a META-INF/ametys.schemas with the following format: http\://www.ametys.org/schema/ribbon/ribbon.xsd=org/ametys/ribbon/ribbon.xsd http\://www.ametys.org/schema/ribbon/ribbon2.xsd=org/ametys/ribbon/ribbon2.xsd This schema can also be used for internal configuration (inside plugin.xml). Using a given namespace we can benefit from Eclipse completion and XML reader validation.

            Unassigned Unassigned
            raphael Raphaël Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: