Parse variablePattern and add mandatory fields to defaults