Skip to content

Allow exceptions to target vector entries#18

Merged
tuckermcclure merged 3 commits into
mainfrom
tucker/allow-exceptions-to-target-vector-entry
May 12, 2026
Merged

Allow exceptions to target vector entries#18
tuckermcclure merged 3 commits into
mainfrom
tucker/allow-exceptions-to-target-vector-entry

Conversation

@tuckermcclure
Copy link
Copy Markdown
Member

From the updated readme:


For example, trees.yaml might provide shared data:

trees:
  - scientific_name: Arbutus unedo
    common_name: strawberry tree
  - scientific_name: Arbutus menziesii
    common_name: Pacific madrone
notes: Needs review.

Another file can include it and overwrite selected values:

include:
  source: trees.yaml
  except:
    - path: trees[2].common_name
      value: madrona
    - path: notes
      value: Reviewed.

Loading the second file produces the included data with the second tree's common name changed and the top-level notes value replaced. The trees[2] path uses Julia-style 1-based indexing.


@tuckermcclure tuckermcclure merged commit ec7a727 into main May 12, 2026
6 checks passed
@tuckermcclure tuckermcclure deleted the tucker/allow-exceptions-to-target-vector-entry branch May 12, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant