3 Replies Latest reply on Dec 6, 2016 6:49 AM by pmm

    Expressions in keystone relative-to

    pmm

      It seems that currently all attributes of the <keystore> element support expressions except for the "relative-to" attribute. Is that intentional? If not we would be willing to provide a PR that simply adds

       

      .setAllowExpression(true)

        • 1. Re: Expressions in keystone relative-to
          mchoma

          I would say it is intentional. Expressions are not allowed when referencing another service, in this case path. However, I don't know what is the real reason for that rule.

          • 2. Re: Expressions in keystone relative-to
            ctomc

            Martin Choma wrote:

             

            However, I don't know what is the real reason for that rule.

            Because otherwise you cannot create proper model referential integrity as we are doing now with capabilities.

            • 3. Re: Expressions in keystone relative-to
              pmm

              Tomaz Cerar wrote:

               

              Because otherwise you cannot create proper model referential integrity as we are doing now with capabilities.

              This makes sense for services but I do not see how this affects paths. We currently cram everything into the "path" attribute because unlike the "relative-to" attribute it supports expressions.