-
Notifications
You must be signed in to change notification settings - Fork 61
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
Refactored AJV usages with an AJV wrapper that provides better error JSON validation messages. #378
Conversation
Changes AnalysisCommit SHA: b1ba40c API ChangesSummaryNO CHANGES ReportThe full API changes report is available at: https://github.com/opensearch-project/opensearch-api-specification/actions/runs/9895698061/artifacts/1692047754 API Coverage
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it. The new Logger
is the only must have.
14e38fd
to
2f28575
Compare
2f28575
to
623cf5a
Compare
@dblock This is now ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made some nitty comments, address them before merging?
- Wrapper for AJV to streamline Json validation logic. - Collapse multiple `required` errors into one - Collapse multiple `additionalProperties` and `unevaluatedProperties` errors into one, and print out which properties are prohibited. - Make `enum` errors print out the supported enum values. Signed-off-by: Theo Truong <[email protected]>
623cf5a
to
b1ba40c
Compare
JsonSchemaValidator
required
errors into oneadditionalProperties
andunevaluatedProperties
errors into one, and print out which properties are prohibited.enum
errors print out the supported enum values.Issues Resolved
closes #364
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.