Skip to content

feat: add validationErrors to schema mismatch errors #641

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update index.js
Co-authored-by: Uzlopak <aras.abbasi@googlemail.com>
  • Loading branch information
MoLow and Uzlopak authored Aug 31, 2023
commit 437f67eca6c1373709220c071c69a1a924994f7c
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ function buildValue (context, location, input) {

if ((type === undefined || type === 'object') && (schema.anyOf || schema.oneOf)) {
context.validatorSchemasIds.add(location.getSchemaId())
code = 'const errors = []\n'
code += 'const errors = []\n'

if (schema.type === 'object') {
context.wrapObjects = false
Expand Down