JSON Schema Validator with message option
Hi People,
I'm using Katalon for test design and i need to validate a json response against an schema, but most of the ones i've found doesn't allow me to set a custom error message in case any specific part of the schema fails the validation.
The question is, is there any java json schema validator that works with java 8 and allows me to set custom error messages to the schema parts ?
Regards and thanks you.
5 Replies
⌛
This post has been reserved for your question.
Hey @keplerk! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
I think you can use https://github.com/networknt/json-schema-validator
GitHub
GitHub - networknt/json-schema-validator: A fast Java JSON schema v...
A fast Java JSON schema validator that supports draft V4, V6, V7, V2019-09 and V2020-12 - networknt/json-schema-validator
that should tell you what exactly is invalid about the JSON
including the path of the errors, the path in the schema and the it gives you errors
GitHub
GitHub - networknt/json-schema-validator: A fast Java JSON schema v...
A fast Java JSON schema validator that supports draft V4, V6, V7, V2019-09 and V2020-12 - networknt/json-schema-validator
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.