Uploaded image for project: 'Yaml extensions (closed)'
  1. Yaml extensions (closed)
  2. YAMLEXT-6

merge !override and !exclude

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Do
    • Neutral
    • None

    Description

      The yaml tags !override and !exclude seem to do exactly the same, except that !override requires some properties/subnodes and throws some cryptic (not even the filename, which caused the error, is logged) error message, if there are no properties/subnodes.

      I suggest, that !exclude is removed and !override is adapted, so it doesn't require any properties/subnodes to be set and therefore behaves exactly like jcr's extends:override, which developers are used to.

      e.g. the following should work

      default.yaml

      someNode: 
        someProp: true
      someOtherNode:
        someOtherProp: true
      

      adapted.yaml

      !extend:/default.yaml
      someOtherNode: !override
      

      expected result of adapted.yaml:

      someNode:
        someProp: true
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                apchelintcev Aleksandr Pchelintcev
                mmueller Matthias Müller
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: