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

Array #2

Open
bredele opened this issue Jan 11, 2018 · 1 comment
Open

Array #2

bredele opened this issue Jan 11, 2018 · 1 comment

Comments

@bredele
Copy link
Contributor

bredele commented Jan 11, 2018

        something: {
          instance: 'array',
          type: 'string',
          filter(val) {
            return val
          },
          transform() {
            // do something
          },
          validate() {
            return val
          }
        }
@bredele
Copy link
Contributor Author

bredele commented Jan 11, 2018

When array/true or instance/array (I don't yet what will be the syntax), any none array value will be converted into an array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant