Type aware yaml generation