Skip to content
Open
Changes from all commits
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
2 changes: 1 addition & 1 deletion packages/cli-kit/src/public/node/json-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function simplifyUnionErrors(rawErrors: AjvError[], subject: object, schema: Sch
// we start by assuming only the union error itself is useful, and not the errors from the candidate schemas
let simplifiedUnionRelatedErrors: AjvError[] = [unionError]

// get the schema list from where the union issue occured
// get the schema list from where the union issue occurred
const dottedSchemaPath = unionError.schemaPath.replace('#/', '').replace(/\//g, '.')
const unionSchemas = getPathValue<SchemaObject[]>(schema, dottedSchemaPath)
// and the slice of the subject that caused the issue
Expand Down
Loading