Skip to content

Conversation

joshuadiezmo
Copy link

feat: Add validation

@dziraf
Copy link
Contributor

dziraf commented Mar 4, 2024

Why not simply use before hooks to run validation for DTO?

@joshuadiezmo
Copy link
Author

I will take a look at that before hooks.

I created these changes because in @adminjs/mikroork they have Resource.validate where it will run before running the create and update. so I just copy those features here.

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

Successfully merging this pull request may close these issues.

2 participants