Skip to content

Unable to resolve reference to payload error #2

Description

@ciwchris

Describe the bug
Running second example in README.md produces the error:

[Error] Unable to resolve reference of payload.

To Reproduce
Steps to reproduce the behavior: Run second example in README.md

> cat users.json | dw "output application/json --- payload filter (item) -> item.age > 17"

Expected behavior

The same result as the first example.

Desktop (please complete the following information):

  • OS: Arch Linux

Other info

Thank you for creating this. I'm new to this space and was thankful when I came across it. I do have other questions about the application. First, when I run the first example it runs successfully but it also outputs the following messages:

Unable to load descriptor META-INF/dw-extensions.dwl reasons:
Unable to resolve module with identifier dw::Core.
Unknown location

Next, the third example uses double quotes within the script which causes an error. They need to be escaped or single quotes used.

Finally, it would be helpful to see an example using the -main argument. I'm not sure how it is to be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions