Github user alopresto commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1536#discussion_r104275792
--- Diff:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ScanAttribute.java
---
@@ -97,13 +107,23 @@
.addValidator(StandardValidators.createRegexValidator(0, 1,
false))
.defaultValue(null)
.build();
+ public static final PropertyDescriptor
DICTIONARY_ENTRY_METADATA_DEMARCATOR = new PropertyDescriptor.Builder()
+ .name("Dictionary Entry Metadata Demarcator")
+ .description("A single character used to demarcate the
dictionary entry string between dictionary value and metadata.")
+ .required(false)
+ .addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
--- End diff --
If this is a single character, this validator should be a
`StringLengthValidator` with a minimum and maximum of 1 character. See [here
for an
example](https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExecuteProcess.java#L129-L135).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---