Skip to content

Fix json fields not working#44

Open
plewin wants to merge 1 commit intoDivanteLtd:masterfrom
AlumnForce:fix/json-fields-not-working
Open

Fix json fields not working#44
plewin wants to merge 1 commit intoDivanteLtd:masterfrom
AlumnForce:fix/json-fields-not-working

Conversation

@plewin
Copy link

@plewin plewin commented Jun 4, 2019

Hello,
In the doc there is the following example

"tables":{
    "subscriptions":{
        "additional_data":{
            "action":"json_update",
            "fields":[
                {
                    "path":"$.user.first_name",
                    "type":"firstname"
                },
                {
                    "path":"$.user.last_name",
                    "type":"lastname"
                },
                {
                    "path":"$.user.phone",
                    "type":"telephone"
                }
            ]
        }
    }
}

I could not get this to work with master's code.

"tables":{
    "subscriptions":{
        "additional_data":{
            "action":"json_update",
            "field":
                {
                    "path":"$.user.first_name",
                    "type":"firstname"
                }
            ]
        }
    }
}

While could work.

I am not sure which is correct, the documentation or the code.
I have modified in my code to make the documentation example works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant