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

Add support for inline child rules #18

Open
bohoffi opened this issue Apr 13, 2024 · 0 comments
Open

Add support for inline child rules #18

bohoffi opened this issue Apr 13, 2024 · 0 comments

Comments

@bohoffi
Copy link
Owner

bohoffi commented Apr 13, 2024

Currently the ruleFor function does not support inline child rules:

  • using the property name overload only allows keyof T e.g. name but not address.city
  • using the member expression overload only the first part of the expression will get extracted e.g. p => p.address.city will result in address

Support for inline child rules using property paths like address.city or nested member expression like p => p.address.city needs to be added.

@bohoffi bohoffi changed the title Add support for nested property validation Add support for inline child rules Apr 14, 2024
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