Skip to content

Cannot feed result from Path to Filter #12

@ostrolucky

Description

@ostrolucky

I can see that when dumping, quotes are removed which causes filter parser to not work. At the same time, Path object has no other accessible methods/properties other than dump() function.

$filter = (new Parser(Mode::PATH()))->parse('roles[value eq "admin"]')->dump()['Path']['ValuePath'][1]['ComparisonExpression']; // string(14) "value eq admin");

(new Parser())->parse($filter); // [Syntax Error] line 0, col 9: Error: Expected comparision value, got 'admin'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions