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

Modify value while validating #2288

Closed
ghost opened this issue Jun 5, 2023 · 3 comments
Closed

Modify value while validating #2288

ghost opened this issue Jun 5, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Jun 5, 2023

hello there.... i am new to Ajv. i just want to ask how can i modify value while validatiing...
For example
lets say i have date field and date is in format yyyy-MM-dd and i just want to add time hh:mm:ss...
how can i acheive this....?

@jacobshirley
Copy link

I also cannot find how to do this.. is it even possible?

@mzeeshan7100
Copy link

Ajv is excellent but too much weak documentation . I switched to joi

@jasoniangreen
Copy link
Collaborator

Here is a general page on modifying data while validating, but for your specific request I think you would need to look into adding a custom keyword.

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

No branches or pull requests

3 participants