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()?


---

Reply via email to