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

[modifier] Custom value modifier. #27

Open
CodingCarlos opened this issue Feb 7, 2019 · 0 comments
Open

[modifier] Custom value modifier. #27

CodingCarlos opened this issue Feb 7, 2019 · 0 comments
Labels
enhancement New feature or request modifiers Related to modifiers functionality

Comments

@CodingCarlos
Copy link
Owner

Have a custom modifier (such as the custom function validator), that allows to create custom functions that modifies input.

Real world example 1:
You want to store a field always in uppercase, even if it cames in lowercase.

Real world example 2:
You have an object that references other by ID, and in some cases object might be complete:

Transform

{
  name: 'Pau gasol',
  // Populated object
  team: {
    id: 'a9d2453e',
    name: 'San Antonio Spurs',
    leage: 'NBA'
  }
}

into:

{
  name: 'Pau gasol',
  // Just ID
  team: 'a9d2453e'
}

So, you want transform it to just the ID when populated object came.

@CodingCarlos CodingCarlos added enhancement New feature or request modifiers Related to modifiers functionality labels Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request modifiers Related to modifiers functionality
Projects
None yet
Development

No branches or pull requests

1 participant