-
-
Notifications
You must be signed in to change notification settings - Fork 872
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
Support format property for object type of schemas #2290
Labels
Comments
After reviewing the docs it looks like format keyword only applies to type |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Ajv you are you using?
8.12.0
What problem do you want to solve?
Unable validate object type of schemas which properties are dependent to each other.
Consider the following phone number schema:
Phone number schema needs one validator function that has
num
andcountry
, as you guess. But I didn't see any way to validate this object as a whole in docs. Is there a recommended way to achieve this? Or is it something ajv doesn't support?What do you think is the correct solution to problem?
Support format property for object type of schemas.
Will you be able to implement it?
I don't know yet.
The text was updated successfully, but these errors were encountered: