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

v.validate() on a specific property of a schema? #384

Open
gordielachance opened this issue Apr 10, 2023 · 1 comment
Open

v.validate() on a specific property of a schema? #384

gordielachance opened this issue Apr 10, 2023 · 1 comment

Comments

@gordielachance
Copy link

Hello, can I (and how can I) use v.validate() on a specific property of a JSON Schema, eg. for validating an instance on the ‘properties/playlist/properties/tracks’, or even ‘$defs/singleTrack’ within my schema ? Thanks!

@awwright
Copy link
Collaborator

awwright commented May 9, 2023

@gordielachance If the result invalid and has errors, you can filter the list of errors based on the property it was found within. Does that make sense?

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

No branches or pull requests

2 participants