[
https://issues.apache.org/jira/browse/NIFI-4800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16394943#comment-16394943
]
ASF GitHub Bot commented on NIFI-4800:
--------------------------------------
Github user pvillard31 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2530#discussion_r173719297
--- Diff:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/FlattenJson.java
---
@@ -89,13 +92,32 @@
.expressionLanguageSupported(true)
.build();
+ public static final AllowableValue FLATTEN_MODE_NORMAL = new
AllowableValue("normal", "normal",
+ "Flattens every objects into a single level json");
+
+ public static final AllowableValue FLATTEN_MODE_KEEP_ARRAYS = new
AllowableValue("keep arrays", "keep arrays",
+ "Flattens every objects and keep arrays format");
+
+ public static final AllowableValue FLATTEN_MODE_DOT_NOTATION = new
AllowableValue("dot notation", "dot notation",
+ "Conforms to MongoDB dot notation to update also nested
documents");
+
+ public static final PropertyDescriptor FLATTEN_MODE = new
PropertyDescriptor.Builder()
+ .name("Flatten Mode")
--- End diff --
Could you use both displayName() and name()?
> Expose the flattenMode as property in FlattenJSON processor
> -----------------------------------------------------------
>
> Key: NIFI-4800
> URL: https://issues.apache.org/jira/browse/NIFI-4800
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Affects Versions: 1.5.0
> Reporter: Alois Gruber
> Assignee: Deon Huang
> Priority: Trivial
>
> the flattening class supports 3 different modes, which cannot be selected in
> the processor. Especially the flattening of arrays would be helpful
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)