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

DPath extractor enhancement #20225

Closed
artem1205 opened this issue Dec 8, 2022 · 1 comment
Closed

DPath extractor enhancement #20225

artem1205 opened this issue Dec 8, 2022 · 1 comment
Labels
area/low-code/components Related to low-code custom components CDK Connector Development Kit low-code needs-triage team/connectors-python team/extensibility type/enhancement New feature or request

Comments

@artem1205
Copy link
Collaborator

artem1205 commented Dec 8, 2022

Tell us about the problem you're trying to solve

Dpath expects records to be found in list by passing a path to it, e.g. '/data/path_to_records/'.
Facebook Pages returns records inside a nested list, see the example:

{
        "data": [
            {'insights':
                {'data': [
                    {"id": "id1",
                    "name": "name1",
                    ...
                    },
                    {"id": "id1",
                    "name": "name1",
                    ...
                    },
                    ...
            },
            ...
        ]
    }

Describe the solution you’d like

make it possible to deal with lists inside dpath , so that field_pointer will now that next fields will be inside list, e.g. pass extra symbol or empty list.
["data", [], "insights", "data"]

@artem1205
Copy link
Collaborator Author

Implemented in #21690

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/low-code/components Related to low-code custom components CDK Connector Development Kit low-code needs-triage team/connectors-python team/extensibility type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants