Implement jsonb_validation_errors_detailed to return detailed errors - #101
Open
milan-miscevic-92 wants to merge 1 commit into
Open
Implement jsonb_validation_errors_detailed to return detailed errors#101milan-miscevic-92 wants to merge 1 commit into
milan-miscevic-92 wants to merge 1 commit into
Conversation
Contributor
|
Why adding some new field naming when JSON Schema drafts already define one? I am strongly against adding non-spec naming schemes here - overall, the approach looks somewhat arbitrary - This kind of stuff should be done downstream as it is needed for some specific use case which doesn't justify public API bloating which will affect all users. |
Contributor
|
@milan-miscevic-92 why move to a fork of the jsonschema crate? Also unless you a very good answers to @Stranger6667's questions this PR will likely not be accepted. If you could share what you are trying to achieve we can probably guide you in the correct direction. |
milan-miscevic-92
force-pushed
the
master
branch
2 times, most recently
from
June 11, 2026 07:37
93ef34a to
3a4e7be
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Feature.
What is the current behavior?
No issues found so far.
What is the new behavior?
A new function jsonb_validation_errors_detailed has been implemented that includes multiple new fields in the response, such as fieldPath, failedConstraint, patternError, and message.
The fieldPath that is included in the error response is in dotted format.
Additional context
Example of validation response with validation errors:
