Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix json fields not working #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant