Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Validator] Access container array in Expression/Context #12315

Copy link
Copy link
Closed
@slavafomin

Description

@slavafomin
Issue body actions

Hi!

We can use Expression constraint on the object's property and object itself will be accessible from inside the expression via this keyword. However, when validating plain arrays instead of objects, we can't access array itself, in this case this has a null value. I think we should also allow entire array to be accessed from inside the expression.

Here's example of how it can be used with form builder:
https://gist.github.com/slavafomin/805d36fe671fbdc3aced

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.