Help with YAML

Hi

is there a way to include a YAML in another YAML please?

#bar.yaml
a: 1
b: 2
z: &z1
baseProp: 123
#foo.yaml
!include bar.yaml
a: 100 
y: [1, 2, 3]
z2: *z1
resulting yml:
a:100
b: 2
z2: 
   baseProp: 123

I define out a base.yaml and several override.yaml which refer to the tags in base.yaml and override some of the tags. Any hints on how to approach this please?

something on lines of:
https://docs.magnolia-cms.com/product-docs/6.2/Developing/Reusing-configuration/YAML-inherit-and-include.html

thanks!