You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Marton Szasz (Jira)" <ji...@apache.org> on 2024/01/23 14:38:00 UTC

[jira] [Resolved] (MINIFICPP-2290) Support the default schema when serializing a JSON config

     [ https://issues.apache.org/jira/browse/MINIFICPP-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marton Szasz resolved MINIFICPP-2290.
-------------------------------------
    Resolution: Fixed

> Support the default schema when serializing a JSON config
> ---------------------------------------------------------
>
>                 Key: MINIFICPP-2290
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2290
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Bug
>            Reporter: Ferenc Gerlits
>            Assignee: Ferenc Gerlits
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The JSON flow configuration comes in two flavors: the default schema and the NiFi schema.  In the default schema, the root node location is {{"."}}, which is a notation borrowed from yaml-cpp to refer to the current node (so {{node["."] == node}}).
> This notation is not supported directly by rapidjson; it works when parsing the JSON input because it is implemented in {{flow::Node::operator[]}}.
> We need to handle {{node["."]}} when writing the JSON flow configuration, too.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)