Skip to content

Commit

Permalink
fix(plugins): add default value for property xpath.expression
Browse files Browse the repository at this point in the history
  • Loading branch information
fhussonnois committed Aug 18, 2020
1 parent ed345f7 commit 7b49623
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
public class XMLFileInputReaderConfig extends AbstractConfig {

public static final String XPATH_QUERY_CONFIG = "xpath.expression";
private static final String XPATH_QUERY_DOC = "The XPath expression used to split the XML into a list of nodes";
private static final String XPATH_QUERY_DOC = "The XPath expression used extract data from XML input " +
"files (default: '/')";

public static final String XPATH_RESULT_TYPE_CONFIG = "xpath.result.type";
private static final String XPATH_RESULT_TYPE_DOC = "The expected result type for the XPath expression in" +
Expand Down Expand Up @@ -74,7 +75,7 @@ private static ConfigDef configDef() {
.define(FORCE_ARRAY_ON_FIELDS_CONFIG, ConfigDef.Type.LIST, Collections.emptyList(),
ConfigDef.Importance.MEDIUM, FORCE_ARRAY_ON_FIELDS_FORCE)

.define(XPATH_QUERY_CONFIG, ConfigDef.Type.STRING,
.define(XPATH_QUERY_CONFIG, ConfigDef.Type.STRING, "/",
ConfigDef.Importance.HIGH, XPATH_QUERY_DOC);
}
}

0 comments on commit 7b49623

Please sign in to comment.